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  const memHashAESImplemented = false
    15  const memHashUsesVAES = false
    16  
    17  func memHash32AES(p unsafe.Pointer, h uintptr) uintptr {
    18  	panic("memHash32AES not implemented")
    19  }
    20  
    21  func memHash64AES(p unsafe.Pointer, h uintptr) uintptr {
    22  	panic("memHash64AES not implemented")
    23  }
    24  
    25  func strHashAES(p unsafe.Pointer, h uintptr) uintptr {
    26  	panic("strHashAES not implemented")
    27  }
    28  
    29  func MemHash(p unsafe.Pointer, h, s uintptr) uintptr {
    30  	return memHashFallback(p, h, s)
    31  }
    32  
    33  func MemHash32(p unsafe.Pointer, h uintptr) uintptr {
    34  	return memHash32Fallback(p, h)
    35  }
    36  
    37  func MemHash64(p unsafe.Pointer, h uintptr) uintptr {
    38  	return memHash64Fallback(p, h)
    39  }
    40  
    41  func StrHash(p unsafe.Pointer, h uintptr) uintptr {
    42  	return strHashFallback(p, h)
    43  }
    44  

View as plain text