projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a08a071
)
[project @ 1998-08-15 17:56:59 by sof]
author
sof
<unknown>
Sat, 15 Aug 1998 17:58:14 +0000
(17:58 +0000)
committer
sof
<unknown>
Sat, 15 Aug 1998 17:58:14 +0000
(17:58 +0000)
use shiftRL# instead of shiftRA#, since the latter primop is no more.
ghc/compiler/basicTypes/Unique.lhs
patch
|
blob
|
history
ghc/compiler/utils/UniqFM.lhs
patch
|
blob
|
history
diff --git
a/ghc/compiler/basicTypes/Unique.lhs
b/ghc/compiler/basicTypes/Unique.lhs
index
07116c7
..
638f888
100644
(file)
--- a/
ghc/compiler/basicTypes/Unique.lhs
+++ b/
ghc/compiler/basicTypes/Unique.lhs
@@
-313,7
+313,7
@@
unpkUnique (MkUnique u)
in
(tag, i)
where
- shiftr x y = shiftRA# x y
+ shiftr x y = shiftRL# x y
\end{code}
diff --git
a/ghc/compiler/utils/UniqFM.lhs
b/ghc/compiler/utils/UniqFM.lhs
index
64ceff4
..
2d78944
100644
(file)
--- a/
ghc/compiler/utils/UniqFM.lhs
+++ b/
ghc/compiler/utils/UniqFM.lhs
@@
-799,7
+799,7
@@
shiftR_ :: FAST_INT -> FAST_INT -> FAST_INT
shiftL_ n p = word2Int#((int2Word# n) `shiftL#` p)
shiftR_ n p = word2Int#((int2Word# n) `shiftr` p)
where
- shiftr x y = shiftRA# x y
+ shiftr x y = shiftRL# x y
#else {- not GHC -}
shiftL_ n p = n * (2 ^ p)