Lines Matching full:x2
41 #define S0_1(x0, x1, x2, x3, x4) \ argument
45 pxor x2, x4; \
50 pxor x0, x2;
51 #define S0_2(x0, x1, x2, x3, x4) \ argument
54 pxor x2, x0; \
55 pand x1, x2; \
56 pxor x2, x3; \
58 pxor x4, x2; \
59 pxor x2, x1;
61 #define S1_1(x0, x1, x2, x3, x4) \ argument
68 pxor x2, x3; \
71 #define S1_2(x0, x1, x2, x3, x4) \ argument
74 pxor x2, x4; \
75 pand x0, x2; \
76 pxor x1, x2; \
79 pxor x2, x0; \
82 #define S2_1(x0, x1, x2, x3, x4) \ argument
86 pand x2, x0; \
89 pxor x1, x2; \
92 #define S2_2(x0, x1, x2, x3, x4) \ argument
93 pxor x2, x0; \
94 pand x3, x2; \
99 pxor x2, x0; \
100 por x2, x1;
102 #define S3_1(x0, x1, x2, x3, x4) \ argument
107 pxor x2, x0; \
108 pxor x1, x2; \
110 pxor x3, x2; \
113 #define S3_2(x0, x1, x2, x3, x4) \ argument
117 pxor x2, x3; \
119 pand x1, x2; \
122 pxor x2, x3;
124 #define S4_1(x0, x1, x2, x3, x4) \ argument
128 pxor x2, x3; \
129 por x4, x2; \
132 por x0, x2; \
133 pxor x1, x2;
134 #define S4_2(x0, x1, x2, x3, x4) \ argument
137 pand x2, x4; \
138 pxor x3, x2; \
144 #define S5_1(x0, x1, x2, x3, x4) \ argument
147 pxor x1, x2; \
150 pxor x2, x0; \
154 #define S5_2(x0, x1, x2, x3, x4) \ argument
157 pxor x2, x3; \
159 pand x4, x2; \
160 pxor x2, x1; \
161 pand x0, x2; \
162 pxor x2, x3;
164 #define S6_1(x0, x1, x2, x3, x4) \ argument
167 pxor x2, x1; \
168 pxor x0, x2; \
173 pxor x2, x1;
174 #define S6_2(x0, x1, x2, x3, x4) \ argument
177 pand x0, x2; \
179 pxor x3, x2; \
182 pxor x2, x1;
184 #define S7_1(x0, x1, x2, x3, x4) \ argument
188 pand x2, x1; \
191 pxor x2, x4; \
192 pxor x3, x2; \
195 #define S7_2(x0, x1, x2, x3, x4) \ argument
196 pand x0, x2; \
201 pxor x4, x2; \
206 #define SI0_1(x0, x1, x2, x3, x4) \ argument
212 pxor x3, x2; \
215 pxor x2, x0;
216 #define SI0_2(x0, x1, x2, x3, x4) \ argument
217 pand x3, x2; \
219 pxor x3, x2; \
223 pxor x2, x0; \
226 #define SI1_1(x0, x1, x2, x3, x4) \ argument
229 pxor x2, x0; \
230 pxor RNOT, x2; \
234 pxor x2, x1; \
235 pand x4, x2;
236 #define SI1_2(x0, x1, x2, x3, x4) \ argument
240 pxor x0, x2; \
242 pxor x4, x2; \
246 #define SI2_1(x0, x1, x2, x3, x4) \ argument
247 pxor x1, x2; \
250 por x2, x3; \
251 pxor x4, x2; \
254 por x2, x1; \
255 pxor x0, x2;
256 #define SI2_2(x0, x1, x2, x3, x4) \ argument
259 pxor x3, x2; \
260 pxor x2, x4; \
261 pand x1, x2; \
262 pxor x3, x2; \
266 #define SI3_1(x0, x1, x2, x3, x4) \ argument
267 pxor x1, x2; \
269 pand x2, x1; \
275 pxor x2, x1;
276 #define SI3_2(x0, x1, x2, x3, x4) \ argument
278 pxor x2, x0; \
279 pxor x3, x2; \
282 pand x2, x0; \
287 #define SI4_1(x0, x1, x2, x3, x4) \ argument
288 pxor x3, x2; \
291 pxor x2, x0; \
292 por x3, x2; \
295 pxor x2, x0; \
296 pand x4, x2;
297 #define SI4_2(x0, x1, x2, x3, x4) \ argument
298 pxor x0, x2; \
301 pand x2, x3; \
308 #define SI5_1(x0, x1, x2, x3, x4) \ argument
310 por x2, x1; \
311 pxor x4, x2; \
314 pxor x3, x2; \
317 pxor x2, x3; \
318 por x0, x2;
319 #define SI5_2(x0, x1, x2, x3, x4) \ argument
321 pxor x4, x2; \
325 pand x2, x0; \
326 pxor x3, x2; \
327 pxor x2, x0; \
328 pxor x4, x2; \
331 #define SI6_1(x0, x1, x2, x3, x4) \ argument
332 pxor x2, x0; \
335 pxor x3, x2; \
336 pxor x2, x0; \
338 por x4, x2; \
339 pxor x3, x2; \
341 #define SI6_2(x0, x1, x2, x3, x4) \ argument
344 pand x2, x1; \
347 pxor x2, x4; \
349 pxor x0, x2;
351 #define SI7_1(x0, x1, x2, x3, x4) \ argument
354 pxor x2, x0; \
355 por x4, x2; \
360 pand x2, x0; \
362 #define SI7_2(x0, x1, x2, x3, x4) \ argument
363 pand x2, x1; \
364 pxor x2, x3; \
366 pand x3, x2; \
371 pxor x2, x4;
377 #define K2(x0, x1, x2, x3, x4, i) \ argument
384 pxor RK2, x2 ## 1; \
388 pxor RK2, x2 ## 2; \
391 #define LK2(x0, x1, x2, x3, x4, i) \ argument
397 movdqa x2 ## 1, x4 ## 1; \
398 pslld $3, x2 ## 1; \
400 por x4 ## 1, x2 ## 1; \
401 pxor x2 ## 1, x1 ## 1; \
407 movdqa x2 ## 2, x4 ## 2; \
408 pslld $3, x2 ## 2; \
410 por x4 ## 2, x2 ## 2; \
411 pxor x2 ## 2, x1 ## 2; \
418 pxor x2 ## 1, x3 ## 1; \
428 pxor x2 ## 2, x3 ## 2; \
439 pxor x3 ## 1, x2 ## 1; \
440 pxor x4 ## 1, x2 ## 1; \
449 pxor x3 ## 2, x2 ## 2; \
450 pxor x4 ## 2, x2 ## 2; \
458 movdqa x2 ## 1, x4 ## 1; \
459 pslld $22, x2 ## 1; \
461 por x4 ## 1, x2 ## 1; \
463 pxor RK2, x2 ## 1; \
470 movdqa x2 ## 2, x4 ## 2; \
471 pslld $22, x2 ## 2; \
473 por x4 ## 2, x2 ## 2; \
475 pxor RK2, x2 ## 2;
477 #define KL2(x0, x1, x2, x3, x4, i) \ argument
479 pxor RK2, x2 ## 1; \
486 movdqa x2 ## 1, x4 ## 1; \
487 psrld $22, x2 ## 1; \
489 por x4 ## 1, x2 ## 1; \
490 pxor x3 ## 1, x2 ## 1; \
492 pxor RK2, x2 ## 2; \
499 movdqa x2 ## 2, x4 ## 2; \
500 psrld $22, x2 ## 2; \
502 por x4 ## 2, x2 ## 2; \
503 pxor x3 ## 2, x2 ## 2; \
508 pxor x4 ## 1, x2 ## 1; \
517 pxor x4 ## 2, x2 ## 2; \
543 pxor x2 ## 1, x1 ## 1; \
544 pxor x2 ## 1, x3 ## 1; \
545 movdqa x2 ## 1, x4 ## 1; \
546 psrld $3, x2 ## 1; \
548 por x4 ## 1, x2 ## 1; \
552 pxor x2 ## 2, x1 ## 2; \
553 pxor x2 ## 2, x3 ## 2; \
554 movdqa x2 ## 2, x4 ## 2; \
555 psrld $3, x2 ## 2; \
557 por x4 ## 2, x2 ## 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
579 movdqa x2, t1; \
580 punpckhdq x3, x2; \
586 punpcklqdq x2, t2; \
587 punpckhqdq x2, x3; \
588 movdqa t2, x2;
590 #define read_blocks(in, x0, x1, x2, x3, t0, t1, t2) \ argument
593 movdqu (2*4*4)(in), x2; \
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) \
603 movdqu x2, (2*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) \
616 pxor t0, x2; \
617 movdqu x2, (2*4*4)(out); \