From 2bfb23f102361232064e7186c5a5fd9be96dacdd Mon Sep 17 00:00:00 2001
From: Andy Polyakov <appro@openssl.org>
Date: Fri, 19 Aug 2011 06:31:27 +0000
Subject: [PATCH] modexp512-x86_64.pl: make it work with ml64 [from HEAD].

---
 crypto/bn/asm/modexp512-x86_64.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/crypto/bn/asm/modexp512-x86_64.pl b/crypto/bn/asm/modexp512-x86_64.pl
index 2788fc5bd9..06290ca009 100644
--- a/crypto/bn/asm/modexp512-x86_64.pl
+++ b/crypto/bn/asm/modexp512-x86_64.pl
@@ -1117,7 +1117,7 @@ mod_exp_512:
 	# adjust stack down and then align it with cache boundary
 	 mov	%rsp, %r8
 	 sub	\$($mem_size), %rsp
-	 and	\$~63, %rsp
+	 and	\$-64, %rsp
 
 	# store previous stack pointer and arguments
 	 mov	%r8, (+$rsp_offset)(%rsp)
-- 
2.40.0