by XCSme · 4y ago · 0 comments
The Arm architecture does call this operation "reverse bytes", though, so it's not universal to call it "swap".
"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.