D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 19924 - Make core.bitop.bswap(ulong) work in betterC
Summary: Make core.bitop.bswap(ulong) work in betterC
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: druntime (show other issues)
Version: D2
Hardware: All All
: P1 enhancement
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-05-31 05:48 UTC by Nathan S.
Modified: 2020-03-12 06:43 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Nathan S. 2019-05-31 05:48:08 UTC
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 Dlang Bot 2019-05-31 05:52:56 UTC
@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 Dlang Bot 2020-03-12 06:43:04 UTC
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