SILC_GET16_LSB

NAME

    #define SILC_GET16_MSB(dest, src)

DESCRIPTION

Return two 8-bit bytes, least significant bytes first.

SOURCE

#if defined(SILC_I386) || defined(SILC_X86_64)
#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_I386 || SILC_X86_64 */