Lines Matching refs:x1
41 #define S0_1(x0, x1, x2, x3, x4) \ argument
47 pxor x1, x3; \
48 pand x0, x1; \
49 pxor x4, x1; \
51 #define S0_2(x0, x1, x2, x3, x4) \ argument
55 pand x1, x2; \
57 pxor RNOT, x1; \
59 pxor x2, x1;
61 #define S1_1(x0, x1, x2, x3, x4) \ argument
62 movdqa x1, x4; \
63 pxor x0, x1; \
66 pand x1, x4; \
67 por x1, x0; \
70 pxor x3, x1;
71 #define S1_2(x0, x1, x2, x3, x4) \ argument
73 por x4, x1; \
76 pxor x1, x2; \
77 por x0, x1; \
80 pxor x1, x4;
82 #define S2_1(x0, x1, x2, x3, x4) \ argument
84 pxor x0, x1; \
89 pxor x1, x2; \
90 pxor x1, x3; \
91 pand x0, x1;
92 #define S2_2(x0, x1, x2, x3, x4) \ argument
95 por x1, x3; \
100 por x2, x1;
102 #define S3_1(x0, x1, x2, x3, x4) \ argument
103 movdqa x1, x4; \
104 pxor x3, x1; \
108 pxor x1, x2; \
109 pand x3, x1; \
113 #define S3_2(x0, x1, x2, x3, x4) \ argument
114 pxor x0, x1; \
118 por x1, x4; \
119 pand x1, x2; \
124 #define S4_1(x0, x1, x2, x3, x4) \ argument
130 pxor x1, x0; \
133 pxor x1, x2;
134 #define S4_2(x0, x1, x2, x3, x4) \ argument
135 pand x0, x1; \
136 pxor x4, x1; \
140 por x1, x3; \
141 pxor RNOT, x1; \
144 #define S5_1(x0, x1, x2, x3, x4) \ argument
145 movdqa x1, x4; \
146 por x0, x1; \
147 pxor x1, x2; \
151 pand x4, x1; \
154 #define S5_2(x0, x1, x2, x3, x4) \ argument
156 pxor x3, x1; \
158 pxor x1, x0; \
160 pxor x2, x1; \
164 #define S6_1(x0, x1, x2, x3, x4) \ argument
165 movdqa x1, x4; \
167 pxor x2, x1; \
170 por x3, x1; \
172 pxor x1, x0; \
173 pxor x2, x1;
174 #define S6_2(x0, x1, x2, x3, x4) \ argument
178 pxor x1, x4; \
180 pand x1, x3; \
182 pxor x2, x1;
184 #define S7_1(x0, x1, x2, x3, x4) \ argument
185 pxor RNOT, x1; \
186 movdqa x1, x4; \
188 pand x2, x1; \
189 pxor x3, x1; \
194 por x1, x0;
195 #define S7_2(x0, x1, x2, x3, x4) \ argument
200 pxor x1, x4; \
202 pxor x1, x3; \
204 pxor x1, x4;
206 #define SI0_1(x0, x1, x2, x3, x4) \ argument
208 pxor x0, x1; \
209 por x1, x3; \
210 pxor x1, x4; \
214 pand x1, x0; \
216 #define SI0_2(x0, x1, x2, x3, x4) \ argument
220 pxor x3, x1; \
222 pxor x0, x1; \
226 #define SI1_1(x0, x1, x2, x3, x4) \ argument
227 pxor x3, x1; \
231 por x1, x4; \
233 pand x1, x3; \
234 pxor x2, x1; \
236 #define SI1_2(x0, x1, x2, x3, x4) \ argument
237 pxor x1, x4; \
238 por x3, x1; \
243 pxor x0, x1; \
244 pxor x1, x4;
246 #define SI2_1(x0, x1, x2, x3, x4) \ argument
247 pxor x1, x2; \
253 pxor x1, x3; \
254 por x2, x1; \
256 #define SI2_2(x0, x1, x2, x3, x4) \ argument
257 pxor x4, x1; \
261 pand x1, x2; \
266 #define SI3_1(x0, x1, x2, x3, x4) \ argument
267 pxor x1, x2; \
268 movdqa x1, x4; \
269 pand x2, x1; \
270 pxor x0, x1; \
274 por x1, x3; \
275 pxor x2, x1;
276 #define SI3_2(x0, x1, x2, x3, x4) \ argument
277 pxor x3, x1; \
280 pand x1, x3; \
281 pxor x0, x1; \
285 pxor x1, x0;
287 #define SI4_1(x0, x1, x2, x3, x4) \ argument
290 pand x1, x0; \
294 pxor x0, x1; \
297 #define SI4_2(x0, x1, x2, x3, x4) \ argument
303 pxor x1, x3; \
304 pand x0, x1; \
305 pxor x1, x4; \
308 #define SI5_1(x0, x1, x2, x3, x4) \ argument
309 movdqa x1, x4; \
310 por x2, x1; \
312 pxor x3, x1; \
319 #define SI5_2(x0, x1, x2, x3, x4) \ argument
320 pxor x1, x4; \
323 pxor x1, x0; \
324 pxor x3, x1; \
331 #define SI6_1(x0, x1, x2, x3, x4) \ argument
337 pxor x1, x3; \
341 #define SI6_2(x0, x1, x2, x3, x4) \ argument
343 pxor x1, x3; \
344 pand x2, x1; \
348 pxor x1, x0; \
351 #define SI7_1(x0, x1, x2, x3, x4) \ argument
356 pxor x1, x4; \
358 por x3, x1; \
361 pxor x1, x0;
362 #define SI7_2(x0, x1, x2, x3, x4) \ argument
363 pand x2, x1; \
368 pxor x4, x1; \
377 #define K2(x0, x1, x2, x3, x4, i) \ argument
383 pxor RK1, x1 ## 1; \
387 pxor RK1, x1 ## 2; \
391 #define LK2(x0, x1, x2, x3, x4, i) \ argument
396 pxor x0 ## 1, x1 ## 1; \
401 pxor x2 ## 1, x1 ## 1; \
406 pxor x0 ## 2, x1 ## 2; \
411 pxor x2 ## 2, x1 ## 2; \
412 movdqa x1 ## 1, x4 ## 1; \
413 pslld $1, x1 ## 1; \
415 por x4 ## 1, x1 ## 1; \
422 movdqa x1 ## 2, x4 ## 2; \
423 pslld $1, x1 ## 2; \
425 por x4 ## 2, x1 ## 2; \
435 movdqa x1 ## 1, x4 ## 1; \
437 pxor x1 ## 1, x0 ## 1; \
445 movdqa x1 ## 2, x4 ## 2; \
447 pxor x1 ## 2, x0 ## 2; \
452 pxor RK1, x1 ## 1; \
464 pxor RK1, x1 ## 2; \
477 #define KL2(x0, x1, x2, x3, x4, i) \ argument
485 pxor RK1, x1 ## 1; \
498 pxor RK1, x1 ## 2; \
505 movdqa x1 ## 1, x4 ## 1; \
507 pxor x1 ## 1, x0 ## 1; \
509 movdqa x1 ## 1, x4 ## 1; \
510 psrld $1, x1 ## 1; \
512 por x4 ## 1, x1 ## 1; \
514 movdqa x1 ## 2, x4 ## 2; \
516 pxor x1 ## 2, x0 ## 2; \
518 movdqa x1 ## 2, x4 ## 2; \
519 psrld $1, x1 ## 2; \
521 por x4 ## 2, x1 ## 2; \
526 pxor x0 ## 1, x1 ## 1; \
535 pxor x0 ## 2, x1 ## 2; \
543 pxor x2 ## 1, x1 ## 1; \
552 pxor x2 ## 2, x1 ## 2; \
559 #define S(SBOX, x0, x1, x2, x3, x4) \ argument
560 SBOX ## _1(x0 ## 1, x1 ## 1, x2 ## 1, x3 ## 1, x4 ## 1); \
561 SBOX ## _2(x0 ## 1, x1 ## 1, x2 ## 1, x3 ## 1, x4 ## 1); \
562 SBOX ## _1(x0 ## 2, x1 ## 2, x2 ## 2, x3 ## 2, x4 ## 2); \
563 SBOX ## _2(x0 ## 2, x1 ## 2, x2 ## 2, x3 ## 2, x4 ## 2);
565 #define SP(SBOX, x0, x1, x2, x3, x4, i) \ argument
567 SBOX ## _1(x0 ## 1, x1 ## 1, x2 ## 1, x3 ## 1, x4 ## 1); \
569 SBOX ## _1(x0 ## 2, x1 ## 2, x2 ## 2, x3 ## 2, x4 ## 2); \
571 SBOX ## _2(x0 ## 1, x1 ## 1, x2 ## 1, x3 ## 1, x4 ## 1); \
573 SBOX ## _2(x0 ## 2, x1 ## 2, x2 ## 2, x3 ## 2, x4 ## 2); \
575 #define transpose_4x4(x0, x1, x2, x3, t0, t1, t2) \ argument
577 punpckldq x1, x0; \
578 punpckhdq x1, t2; \
582 movdqa x0, x1; \
584 punpckhqdq t1, x1; \
590 #define read_blocks(in, x0, x1, x2, x3, t0, t1, t2) \ argument
592 movdqu (1*4*4)(in), x1; \
596 transpose_4x4(x0, x1, x2, x3, t0, t1, t2)
598 #define write_blocks(out, x0, x1, x2, x3, t0, t1, t2) \ argument
599 transpose_4x4(x0, x1, x2, x3, t0, t1, t2) \
602 movdqu x1, (1*4*4)(out); \
606 #define xor_blocks(out, x0, x1, x2, x3, t0, t1, t2) \ argument
607 transpose_4x4(x0, x1, x2, x3, t0, t1, t2) \
613 pxor t0, x1; \
614 movdqu x1, (1*4*4)(out); \