#define SILC_GET16_MSB ...
Return two 8-bit bytes, least significant bytes first.
#if defined(SILC_I486) && defined(__GNUC__) #define SILC_GET16_LSB(l, cp) (l) = (*(SilcUInt16 *)(cp)) #else #define SILC_GET16_LSB(l, cp) \ do { \ (l) = ((SilcUInt32)(SilcUInt8)(cp)[0]) \ | ((SilcUInt32)(SilcUInt8)(cp)[1] << 8); \ } while(0) #endif /* SILC_I486 && __GNUC__ */