[PATCH 4/7] mpi/amd64: align functions to 32 bytes

Jussi Kivilinna jussi.kivilinna at iki.fi
Tue Jan 17 20:17:38 CET 2023


* mpi/amd64/mpih-add1.S: Align function to 32 bytes.
* mpi/amd64/mpih-lshift.S: Likewise.
* mpi/amd64/mpih-mul2.S: Likewise.
* mpi/amd64/mpih-mul3.S: Likewise.
* mpi/amd64/mpih-rshift.S: Likewise.
* mpi/amd64/mpih-sub1.S: Likewise.
--

Signed-off-by: Jussi Kivilinna <jussi.kivilinna at iki.fi>
---
 mpi/amd64/mpih-add1.S   | 3 ++-
 mpi/amd64/mpih-lshift.S | 3 ++-
 mpi/amd64/mpih-mul2.S   | 1 +
 mpi/amd64/mpih-mul3.S   | 1 +
 mpi/amd64/mpih-rshift.S | 3 ++-
 mpi/amd64/mpih-sub1.S   | 3 ++-
 6 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/mpi/amd64/mpih-add1.S b/mpi/amd64/mpih-add1.S
index 39c00c52..e3b57ede 100644
--- a/mpi/amd64/mpih-add1.S
+++ b/mpi/amd64/mpih-add1.S
@@ -40,7 +40,8 @@
  *		   mpi_size_t size)		rcx
  */
 
-.text
+	TEXT
+	ALIGN(5)
 	.globl C_SYMBOL_NAME(_gcry_mpih_add_n)
 C_SYMBOL_NAME(_gcry_mpih_add_n:)
 	FUNC_ENTRY()
diff --git a/mpi/amd64/mpih-lshift.S b/mpi/amd64/mpih-lshift.S
index a9c7d7e1..07e73a1a 100644
--- a/mpi/amd64/mpih-lshift.S
+++ b/mpi/amd64/mpih-lshift.S
@@ -39,7 +39,8 @@
  *		   unsigned cnt)	rcx
  */
 
-.text
+	TEXT
+	ALIGN(5)
 	.globl C_SYMBOL_NAME(_gcry_mpih_lshift)
 C_SYMBOL_NAME(_gcry_mpih_lshift:)
 	FUNC_ENTRY()
diff --git a/mpi/amd64/mpih-mul2.S b/mpi/amd64/mpih-mul2.S
index 07913586..1badc024 100644
--- a/mpi/amd64/mpih-mul2.S
+++ b/mpi/amd64/mpih-mul2.S
@@ -39,6 +39,7 @@
  *		     mpi_limb_t s2_limb)     (rcx)
  */
 	TEXT
+	ALIGN(5)
 	GLOBL	C_SYMBOL_NAME(_gcry_mpih_addmul_1)
 C_SYMBOL_NAME(_gcry_mpih_addmul_1:)
 	FUNC_ENTRY()
diff --git a/mpi/amd64/mpih-mul3.S b/mpi/amd64/mpih-mul3.S
index f8889eb2..21a518db 100644
--- a/mpi/amd64/mpih-mul3.S
+++ b/mpi/amd64/mpih-mul3.S
@@ -40,6 +40,7 @@
  *		     mpi_limb_t s2_limb)     (rcx)
  */
 	TEXT
+	ALIGN(5)
 	GLOBL	C_SYMBOL_NAME(_gcry_mpih_submul_1)
 C_SYMBOL_NAME(_gcry_mpih_submul_1:)
 	FUNC_ENTRY()
diff --git a/mpi/amd64/mpih-rshift.S b/mpi/amd64/mpih-rshift.S
index 8ecf155f..5f117cb1 100644
--- a/mpi/amd64/mpih-rshift.S
+++ b/mpi/amd64/mpih-rshift.S
@@ -39,7 +39,8 @@
  *		   unsigned cnt)	rcx
  */
 
-.text
+	TEXT
+	ALIGN(5)
 	.globl C_SYMBOL_NAME(_gcry_mpih_rshift)
 C_SYMBOL_NAME(_gcry_mpih_rshift:)
 	FUNC_ENTRY()
diff --git a/mpi/amd64/mpih-sub1.S b/mpi/amd64/mpih-sub1.S
index d60b58a5..dd645314 100644
--- a/mpi/amd64/mpih-sub1.S
+++ b/mpi/amd64/mpih-sub1.S
@@ -39,7 +39,8 @@
  *		   mpi_ptr_t s2_ptr,		rdx
  *		   mpi_size_t size)		rcx
  */
-.text
+	TEXT
+	ALIGN(5)
 	.globl C_SYMBOL_NAME(_gcry_mpih_sub_n)
 C_SYMBOL_NAME(_gcry_mpih_sub_n:)
 	FUNC_ENTRY()
-- 
2.37.2




More information about the Gcrypt-devel mailing list