SILC_PUT32_LSB
NAME
#define SILC_PUT32_LSB ...
DESCRIPTION
Put four 8-bit bytes, least significant bytes first.
SOURCE
#if defined(SILC_I486) && defined(__GNUC__)
#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_I486 && __GNUC__ */
|