summaryrefslogtreecommitdiff
path: root/rts
diff options
context:
space:
mode:
authorSylvain Henry <sylvain@haskus.fr>2022-02-18 12:44:52 +0100
committerMarge Bot <ben+marge-bot@smart-cactus.org>2022-02-23 13:59:23 -0500
commitbc8de322d310d9dc879d3d3e7e0aa9157d8c2cf5 (patch)
treeb33660f0b9c248d83e2dea1d599f75716c9da549 /rts
parent6fa7591e832d71ebea452ee6ddf97ac513404576 (diff)
downloadhaskell-bc8de322d310d9dc879d3d3e7e0aa9157d8c2cf5.tar.gz
NCG: inline some 64-bit primops on x86/32-bit (#5444)
Several 64-bit operation were implemented with FFI calls on 32-bit architectures but we can easily implement them with inline assembly code. Also remove unused hs_int64ToWord64 and hs_word64ToInt64 C functions.
Diffstat (limited to 'rts')
-rw-r--r--rts/include/stg/Prim.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/rts/include/stg/Prim.h b/rts/include/stg/Prim.h
index 20b3d45bee..9a04a4eaba 100644
--- a/rts/include/stg/Prim.h
+++ b/rts/include/stg/Prim.h
@@ -97,10 +97,8 @@ StgWord64 hs_uncheckedShiftRL64 (StgWord64 a, StgInt b);
StgInt64 hs_uncheckedIShiftRA64 (StgInt64 a, StgInt b);
StgInt64 hs_intToInt64 (StgInt i);
StgInt hs_int64ToInt (StgInt64 i);
-StgWord64 hs_int64ToWord64 (StgInt64 i);
StgWord64 hs_wordToWord64 (StgWord w);
StgWord hs_word64ToWord (StgWord64 w);
-StgInt64 hs_word64ToInt64 (StgWord64 w);
#endif
/* libraries/ghc-prim/cbits/pdep.c */