Skip to content
Snippets Groups Projects
Commit 2d47ca44 authored by pcapriotti's avatar pcapriotti
Browse files

Make numrun012 work with excess-precision.(#5856)

Remove exact base 2 logarithms, since their values depend on whether
excess precision is used or not (see also #5165).
parent 5372ff5d
No related merge requests found
......@@ -30,6 +30,6 @@ log2 x = ceiling log_x
log_x = logBase 2 (fromIntegral (max 1 x))
vals = [1, 2, 17, 259, 1000, 10000,
2^30 + 9000, 2^31 - 1, 2^31, 2^31 + 1,
2^32 - 1, 2^32, 2^32 + 1]
2^30 + 9000, 2^31 - 1, 2^31 + 1,
2^32 - 1, 2^32 + 1]
[0,1,5,9,10,14,31,31,32,32,32,32,33]
[0,1,5,9,10,14,31,31,32,32,33]
-2.147483648e9
-2.1474836e9
-2.147483648e9
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment