Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for int32Hash (0.31 sec)

  1. src/runtime/alg.go

    	return strhash(noescape(unsafe.Pointer(&s)), seed)
    }
    
    func bytesHash(b []byte, seed uintptr) uintptr {
    	s := (*slice)(unsafe.Pointer(&b))
    	return memhash(s.array, seed, uintptr(s.len))
    }
    
    func int32Hash(i uint32, seed uintptr) uintptr {
    	return memhash32(noescape(unsafe.Pointer(&i)), seed)
    }
    
    func int64Hash(i uint64, seed uintptr) uintptr {
    	return memhash64(noescape(unsafe.Pointer(&i)), seed)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  2. src/runtime/export_test.go

    		}
    		runqput(p, &gs[1], next1)
    		runqget(p)
    		<-done
    		runqget(p)
    	}
    }
    
    var (
    	StringHash = stringHash
    	BytesHash  = bytesHash
    	Int32Hash  = int32Hash
    	Int64Hash  = int64Hash
    	MemHash    = memhash
    	MemHash32  = memhash32
    	MemHash64  = memhash64
    	EfaceHash  = efaceHash
    	IfaceHash  = ifaceHash
    )
    
    var UseAeshash = &useAeshash
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:50:53 UTC 2024
    - 46.1K bytes
    - Viewed (0)
  3. src/runtime/hash_test.go

    	k.i = r.Uint32()
    }
    func (k *Int32Key) bits() int {
    	return 32
    }
    func (k *Int32Key) flipBit(i int) {
    	k.i ^= 1 << uint(i)
    }
    func (k *Int32Key) hash() uintptr {
    	return Int32Hash(k.i, 0)
    }
    func (k *Int32Key) name() string {
    	return "int32"
    }
    
    type Int64Key struct {
    	i uint64
    }
    
    func (k *Int64Key) clear() {
    	k.i = 0
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 06 17:50:18 UTC 2024
    - 18.4K bytes
    - Viewed (0)
Back to top