www.digitalmars.com         C & C++   DMDScript  

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

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=876

           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
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.


-- 
Jan 22 2007
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=876


Jonathan M Davis <jmdavisProg gmx.com> changed:

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



PDT ---
Fixed with
https://github.com/D-Programming-Language/phobos/tree/10ef435bc416c2e41bef9be7119a00d9fd305cda

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