10 #include "MurmurHash3.h"
12 #include "2bitarray.h"
17 // http://www.mersenneforum.org/showthread.php?t=14419
26 #if __BYTE_ORDER == __BIG_ENDIAN
41 void test_types(void) {
46 test1
.u128
= 16u+(uint128_t
)UINT64_MAX
*65536u;
47 printf("uint128_t [%lx %lx]\n",test1
.u64
[1],test1
.u64
[0]);
48 // http://www.mersenneforum.org/showthread.php?t=14419
54 bar
.ourval
= (__float128
)1/(__float128
)3;
55 printf("%04X %012lX %016lX\n", (uint16_t)foo
.bits
.exp
, (uint64_t)foo
.bits
.frac1
, foo
.bits
.frac0
);
56 printf("%04X %012lX %016lX\n", (uint16_t)bar
.bits
.exp
, (uint64_t)bar
.bits
.frac1
, bar
.bits
.frac0
);
59 void test_baseswitcher(void) {
60 const unsigned char baseswitcher
[]={
67 char *seq
="ATCGatcgNn";
69 printf("%c -> %u\n",*seq
,baseswitcher
[*seq
-64]);