diff options
Diffstat (limited to 'libraries/ghc-heap/cbits/HeapPrim.cmm')
-rw-r--r-- | libraries/ghc-heap/cbits/HeapPrim.cmm | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libraries/ghc-heap/cbits/HeapPrim.cmm b/libraries/ghc-heap/cbits/HeapPrim.cmm new file mode 100644 index 0000000000..915786de28 --- /dev/null +++ b/libraries/ghc-heap/cbits/HeapPrim.cmm @@ -0,0 +1,13 @@ +#include "Cmm.h" + +aToWordzh (P_ clos) +{ + return (clos); +} + +reallyUnsafePtrEqualityUpToTag (W_ clos1, W_ clos2) +{ + clos1 = UNTAG(clos1); + clos2 = UNTAG(clos2); + return (clos1 == clos2); +} |