6 ms·
Reversing bytes sounds like reversing their bit orders to me.
by siknad 4y ago
Reversing bytes sounds like reversing their bit orders to me.
- fluoridation 4y agoCould be called "byte-wise reverse".
- XCSme 4y agoThat would be "bitreverse" I guess, plus their description of byteswap[0] is exactly that: "Reverses the bytes in the given integer value n." I would expect the description for "byteswap" to be something like "swaps the given bytes of an integer value n." and be called like byteswap(x, a, b), where a and b are the indicies of the bytes to be swapped. [0]: https://en.cppreference.com/w/cpp/numeric/byteswap https://en.cppreference.com/w/cpp/numeric/byteswap