Lines Matching refs:x
22 #define STORE32L(x, y) \ argument
23 { (y)[3] = (unsigned char)(((x)>>24)&255); (y)[2] = (unsigned char)(((x)>>16)&255); \
24 (y)[1] = (unsigned char)(((x)>>8)&255); (y)[0] = (unsigned char)((x)&255); }
26 #define LOAD32L(x, y) \ argument
27 { x = ((unsigned long)((y)[3] & 255)<<24) | \
32 #define STORE64L(x, y) \ argument
33 { (y)[7] = (unsigned char)(((x)>>56)&255); (y)[6] = (unsigned char)(((x)>>48)&255); \
34 (y)[5] = (unsigned char)(((x)>>40)&255); (y)[4] = (unsigned char)(((x)>>32)&255); \
35 (y)[3] = (unsigned char)(((x)>>24)&255); (y)[2] = (unsigned char)(((x)>>16)&255); \
36 (y)[1] = (unsigned char)(((x)>>8)&255); (y)[0] = (unsigned char)((x)&255); }
38 #define LOAD64L(x, y) \ argument
39 { x = (((ulong64)((y)[7] & 255))<<56)|(((ulong64)((y)[6] & 255))<<48)| \
44 #define STORE32H(x, y) \ argument
45 { (y)[0] = (unsigned char)(((x)>>24)&255); (y)[1] = (unsigned char)(((x)>>16)&255); \
46 (y)[2] = (unsigned char)(((x)>>8)&255); (y)[3] = (unsigned char)((x)&255); }
48 #define LOAD32H(x, y) \ argument
49 { x = ((unsigned long)((y)[0] & 255)<<24) | \
54 #define STORE64H(x, y) \ argument
55 { (y)[0] = (unsigned char)(((x)>>56)&255); (y)[1] = (unsigned char)(((x)>>48)&255); \
56 (y)[2] = (unsigned char)(((x)>>40)&255); (y)[3] = (unsigned char)(((x)>>32)&255); \
57 (y)[4] = (unsigned char)(((x)>>24)&255); (y)[5] = (unsigned char)(((x)>>16)&255); \
58 (y)[6] = (unsigned char)(((x)>>8)&255); (y)[7] = (unsigned char)((x)&255); }
60 #define LOAD64H(x, y) \ argument
61 { x = (((ulong64)((y)[0] & 255))<<56)|(((ulong64)((y)[1] & 255))<<48) | \
72 #define STORE32H(x, y) \ argument
77 ::"r"(x), "r"(y));
79 #define LOAD32H(x, y) \ argument
83 :"=r"(x): "r"(y));
87 #define STORE32H(x, y) \ argument
88 { (y)[0] = (unsigned char)(((x)>>24)&255); (y)[1] = (unsigned char)(((x)>>16)&255); \
89 (y)[2] = (unsigned char)(((x)>>8)&255); (y)[3] = (unsigned char)((x)&255); }
91 #define LOAD32H(x, y) \ argument
92 { x = ((unsigned long)((y)[0] & 255)<<24) | \
103 #define STORE64H(x, y) \ argument
108 ::"r"(x), "r"(y));
110 #define LOAD64H(x, y) \ argument
114 :"=r"(x): "r"(y));
118 #define STORE64H(x, y) \ argument
119 { (y)[0] = (unsigned char)(((x)>>56)&255); (y)[1] = (unsigned char)(((x)>>48)&255); \
120 (y)[2] = (unsigned char)(((x)>>40)&255); (y)[3] = (unsigned char)(((x)>>32)&255); \
121 (y)[4] = (unsigned char)(((x)>>24)&255); (y)[5] = (unsigned char)(((x)>>16)&255); \
122 (y)[6] = (unsigned char)(((x)>>8)&255); (y)[7] = (unsigned char)((x)&255); }
124 #define LOAD64H(x, y) \ argument
125 { x = (((ulong64)((y)[0] & 255))<<56)|(((ulong64)((y)[1] & 255))<<48) | \
134 #define STORE32L(x, y) \ argument
135 { ulong32 __t = (x); XMEMCPY(y, &__t, 4); }
137 #define LOAD32L(x, y) \ argument
138 XMEMCPY(&(x), y, 4);
140 #define STORE64L(x, y) \ argument
141 { (y)[7] = (unsigned char)(((x)>>56)&255); (y)[6] = (unsigned char)(((x)>>48)&255); \
142 (y)[5] = (unsigned char)(((x)>>40)&255); (y)[4] = (unsigned char)(((x)>>32)&255); \
143 (y)[3] = (unsigned char)(((x)>>24)&255); (y)[2] = (unsigned char)(((x)>>16)&255); \
144 (y)[1] = (unsigned char)(((x)>>8)&255); (y)[0] = (unsigned char)((x)&255); }
146 #define LOAD64L(x, y) \ argument
147 { x = (((ulong64)((y)[7] & 255))<<56)|(((ulong64)((y)[6] & 255))<<48)| \
154 #define STORE32L(x, y) \ argument
155 { ulong32 __t = (x); XMEMCPY(y, &__t, 4); }
157 #define LOAD32L(x, y) \ argument
158 { XMEMCPY(&(x), y, 4); x &= 0xFFFFFFFF; }
160 #define STORE64L(x, y) \ argument
161 { ulong64 __t = (x); XMEMCPY(y, &__t, 8); }
163 #define LOAD64L(x, y) \ argument
164 { XMEMCPY(&(x), y, 8); }
171 #define STORE32L(x, y) \ argument
172 { (y)[3] = (unsigned char)(((x)>>24)&255); (y)[2] = (unsigned char)(((x)>>16)&255); \
173 (y)[1] = (unsigned char)(((x)>>8)&255); (y)[0] = (unsigned char)((x)&255); }
175 #define LOAD32L(x, y) \ argument
176 { x = ((unsigned long)((y)[3] & 255)<<24) | \
181 #define STORE64L(x, y) \ argument
182 { (y)[7] = (unsigned char)(((x)>>56)&255); (y)[6] = (unsigned char)(((x)>>48)&255); \
183 (y)[5] = (unsigned char)(((x)>>40)&255); (y)[4] = (unsigned char)(((x)>>32)&255); \
184 (y)[3] = (unsigned char)(((x)>>24)&255); (y)[2] = (unsigned char)(((x)>>16)&255); \
185 (y)[1] = (unsigned char)(((x)>>8)&255); (y)[0] = (unsigned char)((x)&255); }
187 #define LOAD64L(x, y) \ argument
188 { x = (((ulong64)((y)[7] & 255))<<56)|(((ulong64)((y)[6] & 255))<<48) | \
195 #define STORE32H(x, y) \ argument
196 { ulong32 __t = (x); XMEMCPY(y, &__t, 4); }
198 #define LOAD32H(x, y) \ argument
199 XMEMCPY(&(x), y, 4);
201 #define STORE64H(x, y) \ argument
202 { (y)[0] = (unsigned char)(((x)>>56)&255); (y)[1] = (unsigned char)(((x)>>48)&255); \
203 (y)[2] = (unsigned char)(((x)>>40)&255); (y)[3] = (unsigned char)(((x)>>32)&255); \
204 (y)[4] = (unsigned char)(((x)>>24)&255); (y)[5] = (unsigned char)(((x)>>16)&255); \
205 (y)[6] = (unsigned char)(((x)>>8)&255); (y)[7] = (unsigned char)((x)&255); }
207 #define LOAD64H(x, y) \ argument
208 { x = (((ulong64)((y)[0] & 255))<<56)|(((ulong64)((y)[1] & 255))<<48)| \
215 #define STORE32H(x, y) \ argument
216 { ulong32 __t = (x); XMEMCPY(y, &__t, 4); }
218 #define LOAD32H(x, y) \ argument
219 { XMEMCPY(&(x), y, 4); x &= 0xFFFFFFFF; }
221 #define STORE64H(x, y) \ argument
222 { ulong64 __t = (x); XMEMCPY(y, &__t, 8); }
224 #define LOAD64H(x, y) \ argument
225 { XMEMCPY(&(x), y, 8); }
230 #define BSWAP(x) ( ((x>>24)&0x000000FFUL) | ((x<<24)&0xFF000000UL) | \ argument
231 ((x>>8)&0x0000FF00UL) | ((x<<8)&0x00FF0000UL) )
240 #define ROR(x,n) _lrotr(x,n) argument
241 #define ROL(x,n) _lrotl(x,n) argument
242 #define RORc(x,n) _lrotr(x,n) argument
243 #define ROLc(x,n) _lrotl(x,n) argument
335 #define ROL(x, y) ( (((unsigned long)(x)<<(unsigned long)((y)&31)) | (((unsigned long)(x)&0xFFFFFFF… argument
336 #define ROR(x, y) ( ((((unsigned long)(x)&0xFFFFFFFFUL)>>(unsigned long)((y)&31)) | ((unsigned long… argument
337 #define ROLc(x, y) ( (((unsigned long)(x)<<(unsigned long)((y)&31)) | (((unsigned long)(x)&0xFFFFFF… argument
338 #define RORc(x, y) ( ((((unsigned long)(x)&0xFFFFFFFFUL)>>(unsigned long)((y)&31)) | ((unsigned lon… argument
389 #define ROL64(x, y) \ argument
390 ( (((x)<<((ulong64)(y)&63)) | \
391 (((x)&CONST64(0xFFFFFFFFFFFFFFFF))>>((ulong64)64-((y)&63)))) & CONST64(0xFFFFFFFFFFFFFFFF))
393 #define ROR64(x, y) \ argument
394 ( ((((x)&CONST64(0xFFFFFFFFFFFFFFFF))>>((ulong64)(y)&CONST64(63))) | \
395 ((x)<<((ulong64)(64-((y)&CONST64(63)))))) & CONST64(0xFFFFFFFFFFFFFFFF))
397 #define ROL64c(x, y) \ argument
398 ( (((x)<<((ulong64)(y)&63)) | \
399 (((x)&CONST64(0xFFFFFFFFFFFFFFFF))>>((ulong64)64-((y)&63)))) & CONST64(0xFFFFFFFFFFFFFFFF))
401 #define ROR64c(x, y) \ argument
402 ( ((((x)&CONST64(0xFFFFFFFFFFFFFFFF))>>((ulong64)(y)&CONST64(63))) | \
403 ((x)<<((ulong64)(64-((y)&CONST64(63)))))) & CONST64(0xFFFFFFFFFFFFFFFF))
408 #define MAX(x, y) ( ((x)>(y))?(x):(y) ) argument
412 #define MIN(x, y) ( ((x)<(y))?(x):(y) ) argument
417 #define byte(x, n) ((unsigned char)((x) >> (8 * (n)))) argument
419 #define byte(x, n) (((x) >> (8 * (n))) & 255) argument