Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for memhash64 (0.2 sec)

  1. src/runtime/alg.go

    )
    
    func memhash0(p unsafe.Pointer, h uintptr) uintptr {
    	return h
    }
    
    func memhash8(p unsafe.Pointer, h uintptr) uintptr {
    	return memhash(p, h, 1)
    }
    
    func memhash16(p unsafe.Pointer, h uintptr) uintptr {
    	return memhash(p, h, 2)
    }
    
    func memhash128(p unsafe.Pointer, h uintptr) uintptr {
    	return memhash(p, h, 16)
    }
    
    //go:nosplit
    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/cmd/internal/goobj/builtinlist.go

    	{"runtime.c128equal", 1},
    	{"runtime.strequal", 1},
    	{"runtime.interequal", 1},
    	{"runtime.nilinterequal", 1},
    	{"runtime.memhash", 1},
    	{"runtime.memhash0", 1},
    	{"runtime.memhash8", 1},
    	{"runtime.memhash16", 1},
    	{"runtime.memhash32", 1},
    	{"runtime.memhash64", 1},
    	{"runtime.memhash128", 1},
    	{"runtime.f32hash", 1},
    	{"runtime.f64hash", 1},
    	{"runtime.c64hash", 1},
    	{"runtime.c128hash", 1},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 21:08:03 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/typecheck/_builtin/runtime.go

    func nilinterequal(p, q unsafe.Pointer) bool
    
    func memhash(x *any, h uintptr, size uintptr) uintptr
    func memhash0(p unsafe.Pointer, h uintptr) uintptr
    func memhash8(p unsafe.Pointer, h uintptr) uintptr
    func memhash16(p unsafe.Pointer, h uintptr) uintptr
    func memhash32(p unsafe.Pointer, h uintptr) uintptr
    func memhash64(p unsafe.Pointer, h uintptr) uintptr
    func memhash128(p unsafe.Pointer, h uintptr) uintptr
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 21:08:03 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/typecheck/builtin.go

    	{"c128equal", funcTag, 127},
    	{"strequal", funcTag, 127},
    	{"interequal", funcTag, 127},
    	{"nilinterequal", funcTag, 127},
    	{"memhash", funcTag, 128},
    	{"memhash0", funcTag, 129},
    	{"memhash8", funcTag, 129},
    	{"memhash16", funcTag, 129},
    	{"memhash32", funcTag, 129},
    	{"memhash64", funcTag, 129},
    	{"memhash128", funcTag, 129},
    	{"f32hash", funcTag, 130},
    	{"f64hash", funcTag, 130},
    	{"c64hash", funcTag, 130},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 21:08:03 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  5. src/runtime/hash_test.go

    	}
    	var b [8]byte
    	r := rand.New(rand.NewSource(1234))
    	seed := uintptr(r.Uint64())
    	for i := 0; i < 100; i++ {
    		randBytes(r, b[:])
    		got := MemHash64(unsafe.Pointer(&b), seed)
    		want := MemHash(unsafe.Pointer(&b), seed, 8)
    		if got != want {
    			t.Errorf("MemHash64(%x, %v) = %v; want %v", b, seed, got, want)
    		}
    	}
    }
    
    // Smhasher is a torture test for hash functions.
    // https://code.google.com/p/smhasher/
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 06 17:50:18 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  6. src/runtime/export_test.go

    		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
    
    func MemclrBytes(b []byte) {
    	s := (*slice)(unsafe.Pointer(&b))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:50:53 UTC 2024
    - 46.1K bytes
    - Viewed (0)
  7. src/runtime/asm_arm64.s

    	AESMC	V0.B16, V0.B16
    	AESE	V2.B16, V0.B16
    	AESMC	V0.B16, V0.B16
    	AESE	V2.B16, V0.B16
    
    	VMOV	V0.D[0], R0
    	RET
    noaes:
    	B	runtime·memhash32Fallback<ABIInternal>(SB)
    
    // func memhash64(p unsafe.Pointer, h uintptr) uintptr
    TEXT runtime·memhash64<ABIInternal>(SB),NOSPLIT|NOFRAME,$0-24
    	MOVB	runtime·useAeshash(SB), R10
    	CBZ	R10, noaes
    	MOVD	$runtime·aeskeysched+0(SB), R3
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 11 20:38:24 UTC 2024
    - 43.4K bytes
    - Viewed (0)
  8. src/runtime/asm_amd64.s

    	AESENC	runtime·aeskeysched+16(SB), X0
    	AESENC	runtime·aeskeysched+32(SB), X0
    	MOVQ	X0, AX	// return X0
    	RET
    noaes:
    	JMP	runtime·memhash32Fallback<ABIInternal>(SB)
    
    // func memhash64(p unsafe.Pointer, h uintptr) uintptr
    // ABIInternal for performance.
    TEXT runtime·memhash64<ABIInternal>(SB),NOSPLIT,$0-24
    	// AX = ptr to data
    	// BX = seed
    	CMPB	runtime·useAeshash(SB), $0
    	JEQ	noaes
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 11 20:38:24 UTC 2024
    - 60.4K bytes
    - Viewed (0)
  9. src/hash/maphash/maphash_runtime.go

    //go:build !purego
    
    package maphash
    
    import (
    	"unsafe"
    )
    
    //go:linkname runtime_rand runtime.rand
    func runtime_rand() uint64
    
    //go:linkname runtime_memhash runtime.memhash
    //go:noescape
    func runtime_memhash(p unsafe.Pointer, seed, s uintptr) uintptr
    
    func rthash(buf []byte, seed uint64) uint64 {
    	if len(buf) == 0 {
    		return seed
    	}
    	len := len(buf)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  10. src/runtime/tracemap.go

    // the data has been added to the map.
    func (tab *traceMap) put(data unsafe.Pointer, size uintptr) (uint64, bool) {
    	if size == 0 {
    		return 0, false
    	}
    	hash := memhash(data, 0, size)
    
    	var newNode *traceMapNode
    	m := &tab.root
    	hashIter := hash
    	for {
    		n := (*traceMapNode)(m.Load())
    		if n == nil {
    			// Try to insert a new map node. We may end up discarding
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 17:03:35 UTC 2024
    - 4.5K bytes
    - Viewed (0)
Back to top