summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2016-11-21 17:08:38 -0500
committerBen Gamari <ben@smart-cactus.org>2016-11-21 17:08:39 -0500
commitea76a213d14709ded827abeb2246e4daa154e92e (patch)
tree7b332bf26784e7c5e2801c87f6b38eb5566686d3
parente7ec521ecf7dfcb42d39763e84d3447127747aed (diff)
downloadhaskell-ea76a213d14709ded827abeb2246e4daa154e92e.tar.gz
add ieee754 next* functions to math_funs
Reviewers: austin, simonmar, trofi, bgamari Reviewed By: bgamari Subscribers: mpickering, thomie Differential Revision: https://phabricator.haskell.org/D2671 GHC Trac Issues: #12802
-rw-r--r--compiler/cmm/CLabel.hs7
1 files changed, 6 insertions, 1 deletions
diff --git a/compiler/cmm/CLabel.hs b/compiler/cmm/CLabel.hs
index 0b64e3e1ff..960220f2c2 100644
--- a/compiler/cmm/CLabel.hs
+++ b/compiler/cmm/CLabel.hs
@@ -842,7 +842,12 @@ math_funs = mkUniqSet [
(fsLit "significand"), (fsLit "significandf"), (fsLit "significandl"),
(fsLit "y0"), (fsLit "y0f"), (fsLit "y0l"),
(fsLit "y1"), (fsLit "y1f"), (fsLit "y1l"),
- (fsLit "yn"), (fsLit "ynf"), (fsLit "ynl")
+ (fsLit "yn"), (fsLit "ynf"), (fsLit "ynl"),
+
+ -- These functions are described in IEEE Std 754-2008 -
+ -- Standard for Floating-Point Arithmetic and ISO/IEC TS 18661
+ (fsLit "nextup"), (fsLit "nextupf"), (fsLit "nextupl"),
+ (fsLit "nextdown"), (fsLit "nextdownf"), (fsLit "nextdownl")
]
-- -----------------------------------------------------------------------------