Source file src/internal/runtime/maps/memhash_noaes.go
1 // Copyright 2026 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 //go:build !(amd64 || arm64 || 386) 6 7 package maps 8 9 import ( 10 "unsafe" 11 ) 12 13 // AES hashing not implemented for these architectures 14 func MemHash(p unsafe.Pointer, h, s uintptr) uintptr { 15 return memHashFallback(p, h, s) 16 } 17 18 func MemHash32(p unsafe.Pointer, h uintptr) uintptr { 19 return memHash32Fallback(p, h) 20 } 21 22 func MemHash64(p unsafe.Pointer, h uintptr) uintptr { 23 return memHash64Fallback(p, h) 24 } 25 26 func StrHash(p unsafe.Pointer, h uintptr) uintptr { 27 return strHashFallback(p, h) 28 } 29