]>
git.saurik.com Git - redis.git/blob - src/endian.c
1 /* Toggle the 16 bit unsigned integer pointed by *p from little endian to
3 void memrev16(void *p
) {
4 unsigned char *x
= p
, t
;
11 /* Toggle the 32 bit unsigned integer pointed by *p from little endian to
13 void memrev32(void *p
) {
14 unsigned char *x
= p
, t
;
24 /* Toggle the 64 bit unsigned integer pointed by *p from little endian to
26 void memrev64(void *p
) {
27 unsigned char *x
= p
, t
;
49 sprintf(buf
,"ciaoroma");
53 sprintf(buf
,"ciaoroma");
57 sprintf(buf
,"ciaoroma");