Bug 876 – std.intrinsic.bswap overloads

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2007-01-23T01:00:00Z
Last change time
2015-06-09T01:31:23Z
Assigned to
nobody
Creator
tomas

Comments

Comment #0 by tomas — 2007-01-23T01:00:23Z
It would be nice with overloads for std.intrinsic.bswap for other types than uint. Ideally there should be functions for all basic (numeric only?) types >= 2 bytes. That being said I could live with ushort,uint and ulong. right now I have to do (x>>8 | x<<8) to bswap a ushort for example. with a ulong it gets much more complicated.
Comment #1 by issues.dlang — 2011-07-31T19:46:29Z