]>
git.saurik.com Git - redis.git/blob - src/endian.c
741f8bf2aef1b56652169b94bcd971d08c201b96
   3 /* Toggle the 16 bit unsigned integer pointed by *p from little endian to 
   5 void memrev16(void *p
) { 
   6     unsigned char *x 
= p
, t
; 
  13 /* Toggle the 32 bit unsigned integer pointed by *p from little endian to 
  15 void memrev32(void *p
) { 
  16     unsigned char *x 
= p
, t
; 
  26 /* Toggle the 64 bit unsigned integer pointed by *p from little endian to 
  28 void memrev64(void *p
) { 
  29     unsigned char *x 
= p
, t
; 
  45 uint16_t intrev16(uint16_t v
) { 
  50 uint32_t intrev32(uint32_t v
) { 
  55 uint64_t intrev64(uint64_t v
) { 
  66     sprintf(buf
,"ciaoroma"); 
  70     sprintf(buf
,"ciaoroma"); 
  74     sprintf(buf
,"ciaoroma");