summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--compiler/cmm/CLabel.hs12
1 files changed, 10 insertions, 2 deletions
diff --git a/compiler/cmm/CLabel.hs b/compiler/cmm/CLabel.hs
index d18f133b9e..8989276b73 100644
--- a/compiler/cmm/CLabel.hs
+++ b/compiler/cmm/CLabel.hs
@@ -500,8 +500,16 @@ isMathFun (ForeignLabel fs _ _) = fs `elem` math_funs
(fsLit "cosf"), (fsLit "tanf"), (fsLit "sinhf"),
(fsLit "coshf"), (fsLit "tanhf"), (fsLit "asinf"),
(fsLit "acosf"), (fsLit "atanf"), (fsLit "logf"),
- (fsLit "expf"), (fsLit "sqrtf")
- ]
+ (fsLit "expf"), (fsLit "sqrtf"), (fsLit "frexp"),
+ (fsLit "modf"), (fsLit "ilogb"), (fsLit "copysign"),
+ (fsLit "remainder"), (fsLit "nextafter"), (fsLit "logb"),
+ (fsLit "cbrt"), (fsLit "atanh"), (fsLit "asinh"),
+ (fsLit "acosh"), (fsLit "lgamma"),(fsLit "hypot"),
+ (fsLit "erfc"), (fsLit "erf"), (fsLit "trunc"),
+ (fsLit "round"), (fsLit "fmod"), (fsLit "floor"),
+ (fsLit "fabs"), (fsLit "ceil"), (fsLit "log10"),
+ (fsLit "ldexp"), (fsLit "atan2"), (fsLit "rint")
+ ]
isMathFun _ = False
-- -----------------------------------------------------------------------------