Skip to content
Snippets Groups Projects
Commit f7f18efa 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).

MERGED from commits 5774835f and
19fc8e32.
parent e8fae135
No related branches found
Tags haddock-2.15.0.1-release
No related merge requests found
...@@ -30,6 +30,6 @@ log2 x = ceiling log_x ...@@ -30,6 +30,6 @@ log2 x = ceiling log_x
log_x = logBase 2 (fromIntegral (max 1 x)) log_x = logBase 2 (fromIntegral (max 1 x))
vals = [1, 2, 17, 259, 1000, 10000, vals = [1, 2, 17, 259, 1000, 10000,
2^30 + 9000, 2^31 - 1, 2^31, 2^31 + 1, 2^30 + 9000, 2^31 - 1, 2^31 + 1,
2^32 - 1, 2^32, 2^32 + 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.147483648e9
-2.1474836e9 -2.1474836e9
-2.147483648e9 -2.147483648e9
......
[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.147483648e9
8589934592 8589934592
2.1474836e9 2.1474836e9
......
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