On 11/03/2011 19:50, Ali Çehreli wrote: <snip> > There is also std.intrinsic.bswap Well spotted. I don't tend to look at std.intrinsic much. Presumably there's a reason that it's been provided for uint but not ushort or ulong.... Stewart.