projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
387a2ad
)
[project @ 2002-01-02 12:27:43 by simonmar]
author
simonmar
<unknown>
Wed, 2 Jan 2002 12:27:43 +0000
(12:27 +0000)
committer
simonmar
<unknown>
Wed, 2 Jan 2002 12:27:43 +0000
(12:27 +0000)
No need for #ifdef around shift primop now.
ghc/compiler/nativeGen/MachMisc.lhs
patch
|
blob
|
history
diff --git
a/ghc/compiler/nativeGen/MachMisc.lhs
b/ghc/compiler/nativeGen/MachMisc.lhs
index
83c0332
..
de69ab6
100644
(file)
--- a/
ghc/compiler/nativeGen/MachMisc.lhs
+++ b/
ghc/compiler/nativeGen/MachMisc.lhs
@@
-177,13
+177,7
@@
exactLog2 x
}
where
pow2 x# | x# ==# 1# = 0#
- | 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
+ | otherwise = 1# +# pow2 (w2i (i2w x# `shiftRL#` 1#))
\end{code}
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -