Skip to content

Commit

Permalink
Port more primop rules to PrelRules.
Browse files Browse the repository at this point in the history
  • Loading branch information
pcapriotti committed Jul 25, 2012
1 parent 25de47e commit f654e28
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions GHC/Base.lhs
Expand Up @@ -714,19 +714,6 @@ iShiftRL# :: Int# -> Int# -> Int#
a `iShiftRL#` b | b >=# WORD_SIZE_IN_BITS# = 0# a `iShiftRL#` b | b >=# WORD_SIZE_IN_BITS# = 0#
| otherwise = a `uncheckedIShiftRL#` b | otherwise = a `uncheckedIShiftRL#` b
#if WORD_SIZE_IN_BITS == 32
{-# RULES
"narrow32Int#" forall x#. narrow32Int# x# = x#
"narrow32Word#" forall x#. narrow32Word# x# = x#
#-}
#endif
{-# RULES
"int2Word2Int" forall x#. int2Word# (word2Int# x#) = x#
"word2Int2Word" forall x#. word2Int# (int2Word# x#) = x#
#-}
-- Rules for C strings (the functions themselves are now in GHC.CString) -- Rules for C strings (the functions themselves are now in GHC.CString)
{-# RULES {-# RULES
"unpack" [~1] forall a . unpackCString# a = build (unpackFoldrCString# a) "unpack" [~1] forall a . unpackCString# a = build (unpackFoldrCString# a)
Expand Down

0 comments on commit f654e28

Please sign in to comment.