D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 21026 - add core.bitop.byteswap(ushort)
Summary: add core.bitop.byteswap(ushort)
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: performance, pull
Depends on:
Blocks:
 
Reported: 2020-07-07 21:43 UTC by Walter Bright
Modified: 2020-07-08 09:10 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 Walter Bright 2020-07-07 21:43:39 UTC
This is complements bswap(uint).
Comment 1 Dlang Bot 2020-07-07 22:19:26 UTC
@WalterBright updated dlang/druntime pull request #3150 "add core.bitop.bswap(ushort)" fixing this issue:

- fix Issue 21026 - add core.bitop.bswap(ushort)

https://github.com/dlang/druntime/pull/3150
Comment 2 Walter Bright 2020-07-07 22:34:53 UTC
Because of overloading with bswap(uint), this breaks existing code. Rename to byteswap(ushort).
Comment 3 Dlang Bot 2020-07-08 09:10:13 UTC
dlang/druntime pull request #3150 "fix Issue 21026 - add core.bitop.bswap(ushort)" was merged into master:

- 43f21e81ccb63da1bd7638c55fa9e3d49409ba6c by Walter Bright:
  fix Issue 21026 - add core.bitop.byteswap(ushort)

https://github.com/dlang/druntime/pull/3150