On Wed, Aug 07, 2013 at 02:21:24PM -0400, Rich Felker wrote: > Unfortunately it only works on little-endian (I haven't though much > yet about how it could be adapted to big-endian), but testing it on Making it work for big endian was simply a matter of reversing the direction of the shifts. I've updated it with this change, and some other minor improvements. See attached file. If this works on on all existing archs, I think it might be worth committing. Rich