SILC_PUT16_MSB
NAME
#define SILC_PUT16_MSB(dest, src)
DESCRIPTION
Put two 8-bit bytes, most significant bytes first.
SOURCE
#if (defined(SILC_I386) || defined(SILC_X86_64)) && defined(__GNUC__) #define SILC_PUT16_MSB(l, cp) \ asm volatile ("rolw $8, %w1; movw %w1, (%0)" \ : : "q" (cp), "q" (l) : "memory", "cc"); #else #define SILC_PUT16_MSB(l, cp) \ do { \ (cp)[0] = (SilcUInt8)((l) >> 8); \ (cp)[1] = (SilcUInt8)(l); \ } while(0) #endif /* (SILC_I386 || SILC_X86_64) && __GNUC__ */