www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 876] New: std.intrinsic.bswap overloads


           Summary: std.intrinsic.bswap overloads
           Product: D
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Phobos
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: tomas famolsen.dk

It would be nice with overloads for std.intrinsic.bswap for other types than

Ideally there should be functions for all basic (numeric only?) types >= 2

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.

Jan 22 2007