SILC_PUT32_LSB

NAME

    #define SILC_PUT32_LSB(dest, src)

DESCRIPTION

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

SOURCE

#if defined(SILC_I386) || defined(SILC_X86_64)
#define SILC_PUT32_LSB(l, cp) (*(SilcUInt32 *)(cp)) = (l)
#else
#define SILC_PUT32_LSB(l, cp)                   \
do {                                            \
  (cp)[0] = (SilcUInt8)(l);                     \
  (cp)[1] = (SilcUInt8)((l) >> 8);              \
  (cp)[2] = (SilcUInt8)((l) >> 16);             \
  (cp)[3] = (SilcUInt8)((l) >> 24);             \
} while(0)
#endif /* SILC_I386 || SILC_X86_64 */