http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50160
--- Comment #21 from Jonathan Schmidt-Dominé <de...@the-user.org> 2011-08-31 00:30:58 UTC --- It would indeed be nice to have such a builtin function (8, 16, 32, 64 bit reversing), currently there is none in gcc, only bytewise reversing iirc. Should that be put as wishlist-item in the bugzilla or something like that? Reversing is necessary because the ordering should be lexicographic, but the internal representation uses least-significant-first, reversing the internal representation would probably not be that nice.