#define M0 (sizeof(uintptr)==4 ? 2860486313UL : 33054211828000289ULL)
#define M1 (sizeof(uintptr)==4 ? 3267000013UL : 23344194077549503ULL)
+static bool use_aeshash;
+
/*
* map and chan helpers for
* dealing with unknown types
{
byte *b;
uintptr hash;
+ if(use_aeshash) {
+ runtime·aeshash(h, s, a);
+ return;
+ }
b = a;
hash = M0 ^ *h;
(runtime·cpuid_ecx & (1 << 19)) != 0) { // sse4.1 (pinsr{d,q})
byte *rnd;
int32 n;
+ use_aeshash = true;
runtime·algarray[AMEM].hash = runtime·aeshash;
runtime·algarray[AMEM8].hash = runtime·aeshash;
runtime·algarray[AMEM16].hash = runtime·aeshash;