SILC_PUT16_LSB

NAME

    #define SILC_PUT16_LSB(dest, src)

DESCRIPTION

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

SOURCE

#if defined(SILC_I386) || defined(SILC_X86_64)
#define SILC_PUT16_LSB(l, cp) (*(SilcUInt16 *)(cp)) = (l)
#else
#define SILC_PUT16_LSB(l, cp)                   \
do  {                                           \
  (cp)[0] = (SilcUInt8)(l);                     \
  (cp)[1] = (SilcUInt8)((l) >> 8);              \
} while(0)
#endif /* SILC_I386 || SILC_X86_64 */