[project @ 2000-09-25 11:32:55 by simonmar]
authorsimonmar <unknown>
Mon, 25 Sep 2000 11:32:55 +0000 (11:32 +0000)
committersimonmar <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

index adcaec2..4d9c600 100644 (file)
@@ -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)