/* $Id: pack.c 616 2005-08-19 20:11:01Z bruce $ */ #include "uint16.h" #ifndef __INLINE_UINT_LSB void uint16_pack_lsb(uint16 u, unsigned char s[2]) { s[0] = u & 255; s[1] = u >> 8; } #endif #ifndef __INLINE_UINT_MSB void uint16_pack_msb(uint16 u, unsigned char s[2]) { s[1] = u & 255; s[0] = u >> 8; } #endif