move bswap functions to static inline in byteswap.h