[commit: ghc] master: add ieee754 next* functions to math_funs (ea76a21)
git at git.haskell.org
git at git.haskell.org
Tue Nov 22 21:29:10 UTC 2016
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/ea76a213d14709ded827abeb2246e4daa154e92e/ghc
>---------------------------------------------------------------
commit ea76a213d14709ded827abeb2246e4daa154e92e
Author: Ben Gamari <ben at smart-cactus.org>
Date: Mon Nov 21 17:08:38 2016 -0500
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
>---------------------------------------------------------------
ea76a213d14709ded827abeb2246e4daa154e92e
compiler/cmm/CLabel.hs | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/compiler/cmm/CLabel.hs b/compiler/cmm/CLabel.hs
index 0b64e3e..960220f 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")
]
-- -----------------------------------------------------------------------------
More information about the ghc-commits
mailing list