Lines Matching refs:to
48 #define DECODE_SHORT(from, to) *((short *)(to)) = *((short *)(from)) argument
49 #define DECODE_LONG(from, to) *((long *)(to)) = *((long *)(from)) argument
50 #define DECODE_FLOAT(from, to) *((float *)(to)) = *((float *)(from)) argument
51 #define DECODE_DOUBLE(from, to) *((double *)(to)) = *((double *)(from)) argument
53 #define DECODE_SHORT(from, to) \
54 ((char *)(to))[0] = ((char *)(from))[1]; \
55 ((char *)(to))[1] = ((char *)(from))[0];
56 #define DECODE_LONG(from, to) \
57 ((char *)(to))[0] = ((char *)(from))[3]; \
58 ((char *)(to))[1] = ((char *)(from))[2]; \
59 ((char *)(to))[2] = ((char *)(from))[1]; \
60 ((char *)(to))[3] = ((char *)(from))[0];
62 #define DECODE_FLOAT(from, to) DECODE_LONG((to), (from))
64 #define DECODE_DOUBLE(from, to) \
65 ((char *)(to))[0] = ((char *)(from))[7]; \
66 ((char *)(to))[1] = ((char *)(from))[6]; \
67 ((char *)(to))[2] = ((char *)(from))[5]; \
68 ((char *)(to))[3] = ((char *)(from))[4]; \
69 ((char *)(to))[4] = ((char *)(from))[3]; \
70 ((char *)(to))[5] = ((char *)(from))[2]; \
71 ((char *)(to))[6] = ((char *)(from))[1]; \
72 ((char *)(to))[7] = ((char *)(from))[0];
77 #define ENCODE_SHORT(from, to) DECODE_SHORT((from), (to)) argument
78 #define ENCODE_LONG(from, to) DECODE_LONG((from), (to)) argument
79 #define ENCODE_FLOAT(from, to) DECODE_FLOAT((from), (to)) argument
80 #define ENCODE_DOUBLE(from, to) DECODE_DOUBLE((from), (to)) argument