www.digitalmars.com         C & C++   DMDScript  

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

reply d-bugmail puremagic.com writes:

           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
parent d-bugmail puremagic.com writes:

Jonathan M Davis <jmdavisProg gmx.com> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
                 CC|                            |jmdavisProg gmx.com
         Resolution|                            |FIXED

PDT ---
Fixed with

Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jul 31 2011