www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Fast MSB to LSB

reply Rufus Smith <RufusSmith indi.com> writes:
Is there any MSB to LSB and vice versa in phobos? Or some tricks 
with templates that make it fast as possible?
Jul 17 2016
parent Nicholas Wilson <iamthewilsonator hotmail.com> writes:
On Monday, 18 July 2016 at 04:54:07 UTC, Rufus Smith wrote:
 Is there any MSB to LSB and vice versa in phobos? Or some 
 tricks with templates that make it fast as possible?
you mean endianness conversions? then yes. see std.bitmanip:swapendian and friends.
Jul 17 2016