util: byteswapping functions
util: byteswapping functions

Introduce functions to properly perform byte swapping when required.

Signed-off-by: Nico Reißmann <d8255cca0642bdc1e6f9b45da9cb618d308e389b@gmail.com>

phate/jive,phate/jive,phate/jive