summaryrefslogtreecommitdiff
path: root/rts/RtsUtils.c
diff options
context:
space:
mode:
authorCheng Shao <cheng.shao@tweag.io>2021-01-18 11:23:41 +0000
committerMarge Bot <ben+marge-bot@smart-cactus.org>2021-01-22 15:06:00 -0500
commit532337cb8181f31bd4a5475b2dc9740d428657b5 (patch)
treeff2d7e48a43bf57c13b95315ee0e7ed79e1f9b31 /rts/RtsUtils.c
parent637ae302bf89bd601da0afb62b31ef1f79a38d71 (diff)
downloadhaskell-532337cb8181f31bd4a5475b2dc9740d428657b5.tar.gz
Optimize some rts_mk/rts_get functions in RtsAPI.c
- All rts_mk functions return the tagged closure address - rts_mkChar/rts_mkInt avoid allocation when the argument is within the CHARLIKE/INTLIKE range - rts_getBool avoids a memory load by checking the closure tag - In rts_mkInt64/rts_mkWord64, allocated closure payload size is either 1 or 2 words depending on target architecture word size
Diffstat (limited to 'rts/RtsUtils.c')
0 files changed, 0 insertions, 0 deletions