diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-04-01 14:34:26 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-04-01 14:34:26 -0700 |
commit | 7455fa112b79e73aa7c731c5c18c040dcd536a8a (patch) | |
tree | 30af15b357c27293160ab92aa973fa239676370f /tests/runner.py | |
parent | b215efb7c115aa0c62daf081dc9098042fe2ffda (diff) |
work towards unsigned precise i64s: add, subtract and multiply work but divide and modulo do not; printing is rounded
Diffstat (limited to 'tests/runner.py')
-rwxr-xr-x | tests/runner.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/runner.py b/tests/runner.py index 1bd8a165..c8a29184 100755 --- a/tests/runner.py +++ b/tests/runner.py @@ -839,15 +839,14 @@ m_divisor is 1091269979 #include <stdio.h> int main() { - /*uint64_t x = 0, y = 0; + uint64_t x = 0, y = 0; for (int i = 0; i < 64; i++) { x += 1ULL << i; y += x; x /= 3; y *= 5; - printf("unsigned %d: %llu,%llu,%llu,%llu,%llu,%llu,%llu,%llu,%llu\n", i, x, y, x+y, x-y, x*y, y ? x/y : 0, x ? y/x : 0, y ? x%y : 0, x ? y%x : 0); -return 0; - }*/ + printf("unsigned %d: %llu,%llu,%llu,%llu,%llu\n", i, x, y, x+y, x-y, x*y);//, y ? x/y : 0, x ? y/x : 0, y ? x%y : 0, x ? y%x : 0); + } int64_t x2 = 0, y2 = 0; for (int i = 0; i < 64; i++) { x2 += 1LL << i; |