diff options
Diffstat (limited to 'ghc/lib/glaExts/PreludeGlaMisc_mp.hi')
-rw-r--r-- | ghc/lib/glaExts/PreludeGlaMisc_mp.hi | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ghc/lib/glaExts/PreludeGlaMisc_mp.hi b/ghc/lib/glaExts/PreludeGlaMisc_mp.hi new file mode 100644 index 0000000000..2be1fefe39 --- /dev/null +++ b/ghc/lib/glaExts/PreludeGlaMisc_mp.hi @@ -0,0 +1,8 @@ +{-# GHC_PRAGMA INTERFACE VERSION 5 #-} +interface PreludeGlaMisc where +import PreludeBuiltin(Int(..), _Addr(..)) +addr2Int :: _Addr -> Int + {-# GHC_PRAGMA _A_ 1 _U_ 1 _N_ _S_ "U(P)" {_A_ 1 _U_ 2 _N_ _N_ _F_ _IF_ARGS_ 0 1 X 3 \ (u0 :: Addr#) -> case _#_ addr2Int# [] [u0] of { _PRIM_ (u1 :: Int#) -> _!_ I# [] [u1] } _N_} _F_ _IF_ARGS_ 0 1 C 4 \ (u0 :: _Addr) -> case u0 of { _ALG_ A# (u1 :: Addr#) -> case _#_ addr2Int# [] [u1] of { _PRIM_ (u2 :: Int#) -> _!_ I# [] [u2] }; _NO_DEFLT_ } _N_ #-} +int2Addr :: Int -> _Addr + {-# GHC_PRAGMA _A_ 1 _U_ 1 _N_ _S_ "U(P)" {_A_ 1 _U_ 2 _N_ _N_ _F_ _IF_ARGS_ 0 1 X 3 \ (u0 :: Int#) -> case _#_ int2Addr# [] [u0] of { _PRIM_ (u1 :: Addr#) -> _!_ A# [] [u1] } _N_} _F_ _IF_ARGS_ 0 1 C 4 \ (u0 :: Int) -> case u0 of { _ALG_ I# (u1 :: Int#) -> case _#_ int2Addr# [] [u1] of { _PRIM_ (u2 :: Addr#) -> _!_ A# [] [u2] }; _NO_DEFLT_ } _N_ #-} + |