mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-02 07:09:00 +08:00
62 lines
1.7 KiB
Diff
62 lines
1.7 KiB
Diff
diff --git a/configure.ac b/configure.ac
|
|
index e95f1c825..1d7ef36bb 100644
|
|
--- a/configure.ac
|
|
+++ b/configure.ac
|
|
@@ -302,7 +302,7 @@ ABI=standard
|
|
case "$host_cpu" in
|
|
[x86_64 | amd64])
|
|
AC_TRY_COMPILE([
|
|
-#if defined(__x86_64__) || defined(__arch64__)
|
|
+#if defined(__x86_64__) || defined(__arch64__) || defined(_M_AMD64)
|
|
#error 64-bit x86
|
|
#endif
|
|
], [], [
|
|
diff --git a/x86_64/aes.m4 b/x86_64/aes.m4
|
|
index 3bec9eae2..85cafc046 100644
|
|
--- a/x86_64/aes.m4
|
|
+++ b/x86_64/aes.m4
|
|
@@ -77,9 +77,9 @@ define(`AES_STORE', `
|
|
dnl AES_ROUND(table,a,b,c,d,out,ptr)
|
|
dnl Computes one word of the AES round. Leaves result in $6.
|
|
define(`AES_ROUND', `
|
|
- movzb LREG($2), $7
|
|
+ movzbq LREG($2), $7
|
|
movl AES_TABLE0 ($1, $7, 4),$6
|
|
- movzb HREG($3), XREG($7)
|
|
+ movzbq HREG($3), XREG($7)
|
|
xorl AES_TABLE1 ($1, $7, 4),$6
|
|
movl $4,XREG($7)
|
|
shr `$'16,$7
|
|
@@ -94,7 +94,7 @@ dnl Computes one word of the final round. Leaves result in $6. Also
|
|
dnl performs the first substitution step, on the least significant
|
|
dnl byte, and rotates 8 bits.
|
|
define(`AES_FINAL_ROUND', `
|
|
- movzb LREG($1),$7
|
|
+ movzbq LREG($1),$7
|
|
movzbl ($5, $7), $6
|
|
movl $2,XREG($7)
|
|
andl `$'0x0000ff00,XREG($7)
|
|
@@ -113,18 +113,18 @@ dnl each of eax, ebx, ecx and edx, and also rotates
|
|
dnl the words one byte to the left.
|
|
dnl Uses that AES_SBOX == 0
|
|
define(`AES_SUBST_BYTE', `
|
|
- movzb LREG($1),$6
|
|
+ movzbq LREG($1),$6
|
|
movb ($5, $6),LREG($1)
|
|
roll `$'8,$1
|
|
|
|
- movzb LREG($2),$6
|
|
+ movzbq LREG($2),$6
|
|
movb ($5, $6),LREG($2)
|
|
roll `$'8,$2
|
|
|
|
- movzb LREG($3),$6
|
|
+ movzbq LREG($3),$6
|
|
movb ($5, $6),LREG($3)
|
|
roll `$'8,$3
|
|
|
|
- movzb LREG($4),$6
|
|
+ movzbq LREG($4),$6
|
|
movb ($5, $6),LREG($4)
|
|
roll `$'8,$4')dnl
|