Lines Matching refs:x1

56 #define S0_1(x0, x1, x2, x3, x4) \  argument
62 pxor x1, x3; \
63 pand x0, x1; \
64 pxor x4, x1; \
66 #define S0_2(x0, x1, x2, x3, x4) \ argument
70 pand x1, x2; \
72 pxor RNOT, x1; \
74 pxor x2, x1;
76 #define S1_1(x0, x1, x2, x3, x4) \ argument
77 movdqa x1, x4; \
78 pxor x0, x1; \
81 pand x1, x4; \
82 por x1, x0; \
85 pxor x3, x1;
86 #define S1_2(x0, x1, x2, x3, x4) \ argument
88 por x4, x1; \
91 pxor x1, x2; \
92 por x0, x1; \
95 pxor x1, x4;
97 #define S2_1(x0, x1, x2, x3, x4) \ argument
99 pxor x0, x1; \
104 pxor x1, x2; \
105 pxor x1, x3; \
106 pand x0, x1;
107 #define S2_2(x0, x1, x2, x3, x4) \ argument
110 por x1, x3; \
115 por x2, x1;
117 #define S3_1(x0, x1, x2, x3, x4) \ argument
118 movdqa x1, x4; \
119 pxor x3, x1; \
123 pxor x1, x2; \
124 pand x3, x1; \
128 #define S3_2(x0, x1, x2, x3, x4) \ argument
129 pxor x0, x1; \
133 por x1, x4; \
134 pand x1, x2; \
139 #define S4_1(x0, x1, x2, x3, x4) \ argument
145 pxor x1, x0; \
148 pxor x1, x2;
149 #define S4_2(x0, x1, x2, x3, x4) \ argument
150 pand x0, x1; \
151 pxor x4, x1; \
155 por x1, x3; \
156 pxor RNOT, x1; \
159 #define S5_1(x0, x1, x2, x3, x4) \ argument
160 movdqa x1, x4; \
161 por x0, x1; \
162 pxor x1, x2; \
166 pand x4, x1; \
169 #define S5_2(x0, x1, x2, x3, x4) \ argument
171 pxor x3, x1; \
173 pxor x1, x0; \
175 pxor x2, x1; \
179 #define S6_1(x0, x1, x2, x3, x4) \ argument
180 movdqa x1, x4; \
182 pxor x2, x1; \
185 por x3, x1; \
187 pxor x1, x0; \
188 pxor x2, x1;
189 #define S6_2(x0, x1, x2, x3, x4) \ argument
193 pxor x1, x4; \
195 pand x1, x3; \
197 pxor x2, x1;
199 #define S7_1(x0, x1, x2, x3, x4) \ argument
200 pxor RNOT, x1; \
201 movdqa x1, x4; \
203 pand x2, x1; \
204 pxor x3, x1; \
209 por x1, x0;
210 #define S7_2(x0, x1, x2, x3, x4) \ argument
215 pxor x1, x4; \
217 pxor x1, x3; \
219 pxor x1, x4;
221 #define SI0_1(x0, x1, x2, x3, x4) \ argument
223 pxor x0, x1; \
224 por x1, x3; \
225 pxor x1, x4; \
229 pand x1, x0; \
231 #define SI0_2(x0, x1, x2, x3, x4) \ argument
235 pxor x3, x1; \
237 pxor x0, x1; \
241 #define SI1_1(x0, x1, x2, x3, x4) \ argument
242 pxor x3, x1; \
246 por x1, x4; \
248 pand x1, x3; \
249 pxor x2, x1; \
251 #define SI1_2(x0, x1, x2, x3, x4) \ argument
252 pxor x1, x4; \
253 por x3, x1; \
258 pxor x0, x1; \
259 pxor x1, x4;
261 #define SI2_1(x0, x1, x2, x3, x4) \ argument
262 pxor x1, x2; \
268 pxor x1, x3; \
269 por x2, x1; \
271 #define SI2_2(x0, x1, x2, x3, x4) \ argument
272 pxor x4, x1; \
276 pand x1, x2; \
281 #define SI3_1(x0, x1, x2, x3, x4) \ argument
282 pxor x1, x2; \
283 movdqa x1, x4; \
284 pand x2, x1; \
285 pxor x0, x1; \
289 por x1, x3; \
290 pxor x2, x1;
291 #define SI3_2(x0, x1, x2, x3, x4) \ argument
292 pxor x3, x1; \
295 pand x1, x3; \
296 pxor x0, x1; \
300 pxor x1, x0;
302 #define SI4_1(x0, x1, x2, x3, x4) \ argument
305 pand x1, x0; \
309 pxor x0, x1; \
312 #define SI4_2(x0, x1, x2, x3, x4) \ argument
318 pxor x1, x3; \
319 pand x0, x1; \
320 pxor x1, x4; \
323 #define SI5_1(x0, x1, x2, x3, x4) \ argument
324 movdqa x1, x4; \
325 por x2, x1; \
327 pxor x3, x1; \
334 #define SI5_2(x0, x1, x2, x3, x4) \ argument
335 pxor x1, x4; \
338 pxor x1, x0; \
339 pxor x3, x1; \
346 #define SI6_1(x0, x1, x2, x3, x4) \ argument
352 pxor x1, x3; \
356 #define SI6_2(x0, x1, x2, x3, x4) \ argument
358 pxor x1, x3; \
359 pand x2, x1; \
363 pxor x1, x0; \
366 #define SI7_1(x0, x1, x2, x3, x4) \ argument
371 pxor x1, x4; \
373 por x3, x1; \
376 pxor x1, x0;
377 #define SI7_2(x0, x1, x2, x3, x4) \ argument
378 pand x2, x1; \
383 pxor x4, x1; \
392 #define K2(x0, x1, x2, x3, x4, i) \ argument
398 pxor RK1, x1 ## 1; \
402 pxor RK1, x1 ## 2; \
406 #define LK2(x0, x1, x2, x3, x4, i) \ argument
411 pxor x0 ## 1, x1 ## 1; \
416 pxor x2 ## 1, x1 ## 1; \
421 pxor x0 ## 2, x1 ## 2; \
426 pxor x2 ## 2, x1 ## 2; \
427 movdqa x1 ## 1, x4 ## 1; \
428 pslld $1, x1 ## 1; \
430 por x4 ## 1, x1 ## 1; \
437 movdqa x1 ## 2, x4 ## 2; \
438 pslld $1, x1 ## 2; \
440 por x4 ## 2, x1 ## 2; \
450 movdqa x1 ## 1, x4 ## 1; \
452 pxor x1 ## 1, x0 ## 1; \
460 movdqa x1 ## 2, x4 ## 2; \
462 pxor x1 ## 2, x0 ## 2; \
467 pxor RK1, x1 ## 1; \
479 pxor RK1, x1 ## 2; \
492 #define KL2(x0, x1, x2, x3, x4, i) \ argument
500 pxor RK1, x1 ## 1; \
513 pxor RK1, x1 ## 2; \
520 movdqa x1 ## 1, x4 ## 1; \
522 pxor x1 ## 1, x0 ## 1; \
524 movdqa x1 ## 1, x4 ## 1; \
525 psrld $1, x1 ## 1; \
527 por x4 ## 1, x1 ## 1; \
529 movdqa x1 ## 2, x4 ## 2; \
531 pxor x1 ## 2, x0 ## 2; \
533 movdqa x1 ## 2, x4 ## 2; \
534 psrld $1, x1 ## 2; \
536 por x4 ## 2, x1 ## 2; \
541 pxor x0 ## 1, x1 ## 1; \
550 pxor x0 ## 2, x1 ## 2; \
558 pxor x2 ## 1, x1 ## 1; \
567 pxor x2 ## 2, x1 ## 2; \
574 #define S(SBOX, x0, x1, x2, x3, x4) \ argument
575 SBOX ## _1(x0 ## 1, x1 ## 1, x2 ## 1, x3 ## 1, x4 ## 1); \
576 SBOX ## _2(x0 ## 1, x1 ## 1, x2 ## 1, x3 ## 1, x4 ## 1); \
577 SBOX ## _1(x0 ## 2, x1 ## 2, x2 ## 2, x3 ## 2, x4 ## 2); \
578 SBOX ## _2(x0 ## 2, x1 ## 2, x2 ## 2, x3 ## 2, x4 ## 2);
580 #define SP(SBOX, x0, x1, x2, x3, x4, i) \ argument
582 SBOX ## _1(x0 ## 1, x1 ## 1, x2 ## 1, x3 ## 1, x4 ## 1); \
584 SBOX ## _1(x0 ## 2, x1 ## 2, x2 ## 2, x3 ## 2, x4 ## 2); \
586 SBOX ## _2(x0 ## 1, x1 ## 1, x2 ## 1, x3 ## 1, x4 ## 1); \
588 SBOX ## _2(x0 ## 2, x1 ## 2, x2 ## 2, x3 ## 2, x4 ## 2); \
590 #define transpose_4x4(x0, x1, x2, x3, t0, t1, t2) \ argument
592 punpckldq x1, x0; \
593 punpckhdq x1, t2; \
597 movdqa x0, x1; \
599 punpckhqdq t1, x1; \
605 #define read_blocks(in, x0, x1, x2, x3, t0, t1, t2) \ argument
607 movdqu (1*4*4)(in), x1; \
611 transpose_4x4(x0, x1, x2, x3, t0, t1, t2)
613 #define write_blocks(out, x0, x1, x2, x3, t0, t1, t2) \ argument
614 transpose_4x4(x0, x1, x2, x3, t0, t1, t2) \
617 movdqu x1, (1*4*4)(out); \
621 #define xor_blocks(out, x0, x1, x2, x3, t0, t1, t2) \ argument
622 transpose_4x4(x0, x1, x2, x3, t0, t1, t2) \
628 pxor t0, x1; \
629 movdqu x1, (1*4*4)(out); \