summaryrefslogtreecommitdiff
path: root/libraries
diff options
context:
space:
mode:
authorSylvain Henry <sylvain@haskus.fr>2021-04-07 19:45:47 +0200
committerMarge Bot <ben+marge-bot@smart-cactus.org>2021-04-29 17:26:43 -0400
commite50d06752e2113615814d2c9cf8965cca394302b (patch)
treea264e4dbbb635221bc9c9f608495a5f63af3ead2 /libraries
parent8d069477b77614e3360dff8bf0221fba5ae99cf8 (diff)
downloadhaskell-e50d06752e2113615814d2c9cf8965cca394302b.tar.gz
Allow divInt#/modInt# to inline (#18067)
Diffstat (limited to 'libraries')
-rw-r--r--libraries/ghc-prim/GHC/Classes.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/libraries/ghc-prim/GHC/Classes.hs b/libraries/ghc-prim/GHC/Classes.hs
index 55d77c9ed5..d0641f874c 100644
--- a/libraries/ghc-prim/GHC/Classes.hs
+++ b/libraries/ghc-prim/GHC/Classes.hs
@@ -540,8 +540,8 @@ not False = True
-- put them
-- These functions have built-in rules.
-{-# NOINLINE divInt# #-}
-{-# NOINLINE modInt# #-}
+{-# INLINE [0] divInt# #-}
+{-# INLINE [0] modInt# #-}
divInt# :: Int# -> Int# -> Int#
x# `divInt#` y# = ((x# +# bias#) `quotInt#` y#) -# hard#