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:
b7e1583
)
[project @ 2001-12-13 23:32:21 by sof]
author
sof
<unknown>
Thu, 13 Dec 2001 23:32:21 +0000
(23:32 +0000)
committer
sof
<unknown>
Thu, 13 Dec 2001 23:32:21 +0000
(23:32 +0000)
shift wibble
ghc/compiler/nativeGen/MachMisc.lhs
patch
|
blob
|
history
diff --git
a/ghc/compiler/nativeGen/MachMisc.lhs
b/ghc/compiler/nativeGen/MachMisc.lhs
index
4229595
..
6b2c181
100644
(file)
--- a/
ghc/compiler/nativeGen/MachMisc.lhs
+++ b/
ghc/compiler/nativeGen/MachMisc.lhs
@@
-177,7
+177,13
@@
exactLog2 x
}
where
pow2 x# | x# ==# 1# = 0#
- | otherwise = 1# +# pow2 (w2i (i2w x# `shiftRL#` 1#))
+ | otherwise = 1# +# pow2 (w2i (i2w x# `shiftr` 1#))
+
+#if __GLASGOW_HASKELL__ >= 503
+ shiftr x y = uncheckedShiftRL# x y
+#else
+ shiftr x y = shiftRL# x y
+#endif
\end{code}
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -