Many processors and compilers provide handy instructions for doing this,
and it's a handy primitive for loading and storing.
The HTOLw etc. macros turn out to be remarkably slippery to define.
It's unfortunately nonsensical to speak about an integer value having an
endianness.