Update util.h

Replaced byte_swap function with assembler instruction (arm only).
Made it "static inline" so it will be always inlined.