Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for IfaceHash (0.11 sec)

  1. src/runtime/alg.go

    }
    
    func int64Hash(i uint64, seed uintptr) uintptr {
    	return memhash64(noescape(unsafe.Pointer(&i)), seed)
    }
    
    func efaceHash(i any, seed uintptr) uintptr {
    	return nilinterhash(noescape(unsafe.Pointer(&i)), seed)
    }
    
    func ifaceHash(i interface {
    	F()
    }, seed uintptr) uintptr {
    	return interhash(noescape(unsafe.Pointer(&i)), seed)
    }
    
    const hashRandomBytes = goarch.PtrSize / 4 * 64
    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

    var (
    	StringHash = stringHash
    	BytesHash  = bytesHash
    	Int32Hash  = int32Hash
    	Int64Hash  = int64Hash
    	MemHash    = memhash
    	MemHash32  = memhash32
    	MemHash64  = memhash64
    	EfaceHash  = efaceHash
    	IfaceHash  = ifaceHash
    )
    
    var UseAeshash = &useAeshash
    
    func MemclrBytes(b []byte) {
    	s := (*slice)(unsafe.Pointer(&b))
    	memclrNoHeapPointers(s.array, uintptr(s.len))
    }
    
    const HashLoad = hashLoad
    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

    	// on 64-bit targets and indirect interfaces on
    	// 32-bit targets.
    	return 64
    }
    func (k *EfaceKey) flipBit(i int) {
    	k.i = k.i.(uint64) ^ uint64(1)<<uint(i)
    }
    func (k *EfaceKey) hash() uintptr {
    	return EfaceHash(k.i, 0)
    }
    func (k *EfaceKey) name() string {
    	return "Eface"
    }
    
    type IfaceKey struct {
    	i interface {
    		F()
    	}
    }
    type fInter uint64
    
    func (x fInter) F() {
    }
    
    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