Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 483504 | Differences between
and this patch

Collapse All | Expand All

(-)a/src/aircrack-ptw-lib.c (-3 / +3 lines)
Lines 176-183 static int rc4test_amd64_sse2(uint8_t *key, int keylen, uint8_t *iv, uint8_t *ke Link Here
176
		// key = keybuf
178
		// key = keybuf
177
		"lea  "keybuf", %q3           \n\t"
179
		"lea  "keybuf", %q3           \n\t"
178
		// load xmm registers
180
		// load xmm registers
179
		"movdqa (x0123), %%xmm0       \n\t"
181
		"movdqa %q9,  %%xmm0          \n\t"
180
		"movdqa (x4444), %%xmm1       \n\t"
182
		"movdqa %q10, %%xmm1          \n\t"
181
		// clear some registers
183
		// clear some registers
182
		"xorq      %q0, %q0           \n\t" // idx
184
		"xorq      %q0, %q0           \n\t" // idx
183
		"xorq      %q1, %q1           \n\t" // i
185
		"xorq      %q1, %q1           \n\t" // i
Lines 257-263 static int rc4test_amd64_sse2(uint8_t *key, int keylen, uint8_t *iv, uint8_t *ke Link Here
257
	: "=&r"(idx), "=&r"(i), "=&r"(j),
259
	: "=&r"(idx), "=&r"(i), "=&r"(j),
258
	  "+r"(key), "+r"(keylen), "+r"(iv), "+r"(keystream),
260
	  "+r"(key), "+r"(keylen), "+r"(iv), "+r"(keystream),
259
	  "=&r"(scratch1), "=&r"(scratch2)
261
	  "=&r"(scratch1), "=&r"(scratch2)
260
	:
262
	: "m"(x0123[0]), "m"(x4444[0])
261
	: "xmm0", "xmm1"
263
	: "xmm0", "xmm1"
262
	);
264
	);
263
#undef state
265
#undef state

Return to bug 483504