30#ifndef USE_NATIVE_INT128
31#define USE_NATIVE_INT128 0
56#define INT128_HEX_FORMAT "%016" PRIx64 "%016" PRIx64
80main(
int argc,
char **argv)
115 if (
t1.hl.hi !=
t2.hl.hi ||
t1.hl.lo !=
t2.hl.lo)
130 if (
t1.hl.hi !=
t2.hl.hi ||
t1.hl.lo !=
t2.hl.lo)
147 if (
t1.hl.hi !=
t2.hl.hi ||
t1.hl.lo !=
t2.hl.lo)
162 if (
t1.hl.hi !=
t2.hl.hi ||
t1.hl.lo !=
t2.hl.lo)
177 if (
t1.hl.hi !=
t2.hl.hi ||
t1.hl.lo !=
t2.hl.lo)
192 if (
t1.hl.hi !=
t2.hl.hi ||
t1.hl.lo !=
t2.hl.lo)
207 if (
t1.hl.hi !=
t2.hl.hi ||
t1.hl.lo !=
t2.hl.lo)
223 if (
t1.hl.hi !=
t2.hl.hi ||
t1.hl.lo !=
t2.hl.lo)
247 printf(
"comparison failure: %d vs %d\n",
261 printf(
"comparison failure: %d vs %d\n",
281 printf(
"skipping tests: no native int128 type\n");
static void int128_sub_uint64(INT128 *i128, uint64 v)
static void int128_add_uint64(INT128 *i128, uint64 v)
static void int128_sub_int64_mul_int64(INT128 *i128, int64 x, int64 y)
static void int128_add_int128(INT128 *i128, INT128 v)
static void int128_sub_int64(INT128 *i128, int64 v)
static int int128_compare(INT128 x, INT128 y)
static void int128_add_int64(INT128 *i128, int64 v)
static void int128_div_mod_int32(INT128 *i128, int32 v, int32 *remainder)
static void int128_add_int64_mul_int64(INT128 *i128, int64 x, int64 y)
int32 pg_prng_int32(pg_prng_state *state)
int64 pg_prng_int64(pg_prng_state *state)
void pg_prng_seed(pg_prng_state *state, uint64 seed)
pg_prng_state pg_global_prng_state