Skip to content

Commit

Permalink
Make numrun012 work with excess-precision.(#5856)
Browse files Browse the repository at this point in the history
Remove exact base 2 logarithms, since their values depend on whether
excess precision is used or not (see also #5165).
  • Loading branch information
pcapriotti committed Jul 10, 2012
1 parent dda6e3a commit 5774835
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/numeric/should_run/numrun012.hs
Expand Up @@ -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]

2 changes: 1 addition & 1 deletion tests/numeric/should_run/numrun012.stdout
@@ -1,4 +1,4 @@
[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
Expand Down

0 comments on commit 5774835

Please sign in to comment.