SILC_GET32_LSB

NAME

    #define SILC_GET32_LSB(dest, src)

DESCRIPTION

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

SOURCE

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