void to_little_endian(unsigned short *s) { *s = (*s >> 8) | (*s << 8); }