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
55 #define DECODE_SHORT(from, to) \ argument
56 ((char *)(to))[0] = ((char *)(from))[1]; \
57 ((char *)(to))[1] = ((char *)(from))[0];
58 #define DECODE_LONG(from, to) \ argument
59 ((char *)(to))[0] = ((char *)(from))[3]; \
60 ((char *)(to))[1] = ((char *)(from))[2]; \
61 ((char *)(to))[2] = ((char *)(from))[1]; \
62 ((char *)(to))[3] = ((char *)(from))[0];
64 #define DECODE_FLOAT(from, to) DECODE_LONG((to), (from)) argument
66 #define DECODE_DOUBLE(from, to) \ argument
67 ((char *)(to))[0] = ((char *)(from))[7]; \
68 ((char *)(to))[1] = ((char *)(from))[6]; \
69 ((char *)(to))[2] = ((char *)(from))[5]; \
70 ((char *)(to))[3] = ((char *)(from))[4]; \
71 ((char *)(to))[4] = ((char *)(from))[3]; \
72 ((char *)(to))[5] = ((char *)(from))[2]; \
73 ((char *)(to))[6] = ((char *)(from))[1]; \
74 ((char *)(to))[7] = ((char *)(from))[0];
80 #define ENCODE_SHORT(from, to) DECODE_SHORT((from), (to)) argument
81 #define ENCODE_LONG(from, to) DECODE_LONG((from), (to)) argument
82 #define ENCODE_FLOAT(from, to) DECODE_FLOAT((from), (to)) argument
83 #define ENCODE_DOUBLE(from, to) DECODE_DOUBLE((from), (to)) argument