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:
44d7b25
)
[project @ 2001-12-11 20:14:57 by panne]
author
panne
<unknown>
Tue, 11 Dec 2001 20:14:57 +0000
(20:14 +0000)
committer
panne
<unknown>
Tue, 11 Dec 2001 20:14:57 +0000
(20:14 +0000)
Never-ending story, part #2: The shifting continues...
ghc/compiler/basicTypes/UniqSupply.lhs
patch
|
blob
|
history
diff --git
a/ghc/compiler/basicTypes/UniqSupply.lhs
b/ghc/compiler/basicTypes/UniqSupply.lhs
index
218df9e
..
b1de3f3
100644
(file)
--- a/
ghc/compiler/basicTypes/UniqSupply.lhs
+++ b/
ghc/compiler/basicTypes/UniqSupply.lhs
@@
-72,8
+72,11
@@
uniqsFromSupply :: UniqSupply -> [Unique] -- Infinite
\begin{code}
mkSplitUniqSupply (C# c#)
= let
+#if __GLASGOW_HASKELL__ >= 503
+ mask# = (i2w (ord# c#)) `uncheckedShiftL#` (i2w_s 24#)
+#else
mask# = (i2w (ord# c#)) `shiftL#` (i2w_s 24#)
-
+#endif
-- here comes THE MAGIC:
-- This is one of the most hammered bits in the whole compiler