Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for memhashFallback (0.2 sec)

  1. src/runtime/hash32.go

    	a, b := mix32(uint32(seed), uint32(8^hashkey[0]))
    	a ^= readUnaligned32(p)
    	b ^= readUnaligned32(add(p, 4))
    	a, b = mix32(a, b)
    	a, b = mix32(a, b)
    	return uintptr(a ^ b)
    }
    
    func memhashFallback(p unsafe.Pointer, seed, s uintptr) uintptr {
    
    	a, b := mix32(uint32(seed), uint32(s^hashkey[0]))
    	if s == 0 {
    		return uintptr(a ^ b)
    	}
    	for ; s > 8; s -= 8 {
    		a ^= readUnaligned32(p)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 1.6K bytes
    - Viewed (0)
  2. src/runtime/hash64.go

    package runtime
    
    import (
    	"runtime/internal/math"
    	"unsafe"
    )
    
    const (
    	m5 = 0x1d8e4e27c47d124f
    )
    
    func memhashFallback(p unsafe.Pointer, seed, s uintptr) uintptr {
    	var a, b uintptr
    	seed ^= hashkey[0]
    	switch {
    	case s == 0:
    		return seed
    	case s < 4:
    		a = uintptr(*(*byte)(p))
    		a |= uintptr(*(*byte)(add(p, s>>1))) << 8
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 19 17:39:28 UTC 2024
    - 1.9K bytes
    - Viewed (0)
Back to top