- or download this
#define H_PRIME 1000003
#define HASH_LEN 11
...
}
return iret;
}
- or download this
gcc -O3 -c inner2.c
g++ -o find1 find1.cpp inner2.o
- or download this
cl /W3 /MD /O2 find1.cpp inner2.c
- or download this
# find1 9 8 9 60 61 1 2
9: sv1=8 ev1=9 sv2=60 ev2=61 sv3=1 ev3=2:
9 8 60 1 94 6 51 38 78 100
(wall clock time:109 secs, cpu time:108.95 units)
- or download this
109 * 125**4 = 26,611,328,125 seconds = 26611328125 / 60 / 60 / 24 / 3
+65 = 844 years
- or download this
m4 = (m3 ^ q4) * H_PRIME;
d4 = (d3 ^ q4) * H_PRIME;
c4 = (c3 ^ q4) * H_PRIME;
l4 = (l3 ^ q4) * H_PRIME;
x4 = (x3 ^ q4) * H_PRIME;
- or download this
#include <emmintrin.h>
#include <smmintrin.h>
...
}
return iret;
}
- or download this
d8 = (d7 ^ q8) * H_PRIME ^ HASH_LEN;
d9 = d8 & ~127;
...
ps[iret].m128i_i16[5] = q8;
ps[iret].m128i_i16[6] = q9;
++iret;
- or download this
q9 = bytevecM[(unsigned int)(m7 ^ q8)];
if (q9 != 0
...
ps[iret].m128i_i16[6] = q9;
++iret;
}
- or download this
# find3a 9 8 9 60 61 1 2
9: sv1=8 ev1=9 sv2=60 ev2=61 sv3=1 ev3=2:
9 8 60 1 94 6 51 38 78 100
(wall clock time:94 secs, cpu time:93.90 units)