Bug 19924 – Make core.bitop.bswap(ulong) work in betterC
Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
druntime
Product
D
Version
D2
Platform
All
OS
All
Creation time
2019-05-31T05:48:08Z
Last change time
2020-03-12T06:43:04Z
Assigned to
No Owner
Creator
Nathan S.
Comments
Comment #0 by n8sh.secondary — 2019-05-31T05:48:08Z
Right now `bswap(ulong)` does not work in betterC when compiling with DMD. (It works when compiling with LDC because LDC treats both `bswap(uint)` and `bswap(ulong)` as intrinsic functions.) In the long run all functions in core.bitop probably should either be made into template functions or intrinsics.
Comment #1 by dlang-bot — 2019-05-31T05:52:56Z
@n8sh created dlang/druntime pull request #2621 "Issue 19924 - Make core.bitop.bswap(ulong) work in betterC" mentioning this issue:
- Issue 19924 - Make core.bitop.bswap(ulong) work in betterC
https://github.com/dlang/druntime/pull/2621
Comment #2 by dlang-bot — 2020-03-12T06:43:04Z
dlang/druntime pull request #2621 "Issue 19924 - Make core.bitop.bswap(ulong) work in betterC" was merged into master:
- 23f6cf0fc235c00265c7dcc293de190dbccdbb52 by Nathan Sashihara:
Fix Issue 19924 - Make core.bitop.bswap(ulong) work in betterC
https://github.com/dlang/druntime/pull/2621