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:
fda5605
)
[project @ 2000-09-25 11:32:55 by simonmar]
author
simonmar
<unknown>
Mon, 25 Sep 2000 11:32:55 +0000
(11:32 +0000)
committer
simonmar
<unknown>
Mon, 25 Sep 2000 11:32:55 +0000
(11:32 +0000)
INLINE is_ctype, otherwise charType gets inlined in the RHS by virtue
of only being used once, and we lose the opportunity to inline is_ctype.
ghc/compiler/parser/Ctype.lhs
patch
|
blob
|
history
diff --git
a/ghc/compiler/parser/Ctype.lhs
b/ghc/compiler/parser/Ctype.lhs
index
adcaec2
..
4d9c600
100644
(file)
--- a/
ghc/compiler/parser/Ctype.lhs
+++ b/
ghc/compiler/parser/Ctype.lhs
@@
-35,6
+35,7
@@
The predicates below look costly, but aren't, GHC+GCC do a great job
at the big case below.
\begin{code}
+{-# INLINE is_ctype #-}
is_ctype :: Int -> Char# -> Bool
is_ctype mask c = (fromIntegral (charType (C# c)) .&. fromIntegral mask) /= (0::Int32)