[PATCH] mpi/amd64: remove extra 'ret' from assembly functions
Jussi Kivilinna
jussi.kivilinna at iki.fi
Sat Jan 8 22:43:43 CET 2022
* mpi/amd64/mpih-add1.S: Remove 'ret' as it is already included by
FUNC_EXIT macro.
* mpi/amd64/mpih-lshift.S: Likewise.
* mpi/amd64/mpih-mul1.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 | 1 -
mpi/amd64/mpih-lshift.S | 1 -
mpi/amd64/mpih-mul1.S | 1 -
mpi/amd64/mpih-mul2.S | 1 -
mpi/amd64/mpih-mul3.S | 1 -
mpi/amd64/mpih-rshift.S | 1 -
mpi/amd64/mpih-sub1.S | 1 -
7 files changed, 7 deletions(-)
diff --git a/mpi/amd64/mpih-add1.S b/mpi/amd64/mpih-add1.S
index 157e5f1e..39c00c52 100644
--- a/mpi/amd64/mpih-add1.S
+++ b/mpi/amd64/mpih-add1.S
@@ -61,4 +61,3 @@ C_SYMBOL_NAME(_gcry_mpih_add_n:)
movq %rcx, %rax /* zero %rax */
adcq %rax, %rax
FUNC_EXIT()
- ret
diff --git a/mpi/amd64/mpih-lshift.S b/mpi/amd64/mpih-lshift.S
index 76e9408f..a9c7d7e1 100644
--- a/mpi/amd64/mpih-lshift.S
+++ b/mpi/amd64/mpih-lshift.S
@@ -76,4 +76,3 @@ C_SYMBOL_NAME(_gcry_mpih_lshift:)
.Lende: psllq %xmm1, %xmm2
movq %xmm2, (%rdi)
FUNC_EXIT()
- ret
diff --git a/mpi/amd64/mpih-mul1.S b/mpi/amd64/mpih-mul1.S
index 67ab47ea..dacb9d87 100644
--- a/mpi/amd64/mpih-mul1.S
+++ b/mpi/amd64/mpih-mul1.S
@@ -64,4 +64,3 @@ C_SYMBOL_NAME(_gcry_mpih_mul_1:)
movq %r8, %rax
FUNC_EXIT()
- ret
diff --git a/mpi/amd64/mpih-mul2.S b/mpi/amd64/mpih-mul2.S
index 1aa4fa0a..07913586 100644
--- a/mpi/amd64/mpih-mul2.S
+++ b/mpi/amd64/mpih-mul2.S
@@ -63,4 +63,3 @@ C_SYMBOL_NAME(_gcry_mpih_addmul_1:)
movq %r8, %rax
FUNC_EXIT()
- ret
diff --git a/mpi/amd64/mpih-mul3.S b/mpi/amd64/mpih-mul3.S
index bc41c4eb..f8889eb2 100644
--- a/mpi/amd64/mpih-mul3.S
+++ b/mpi/amd64/mpih-mul3.S
@@ -64,4 +64,3 @@ C_SYMBOL_NAME(_gcry_mpih_submul_1:)
movq %r8, %rax
FUNC_EXIT()
- ret
diff --git a/mpi/amd64/mpih-rshift.S b/mpi/amd64/mpih-rshift.S
index d5e27974..8ecf155f 100644
--- a/mpi/amd64/mpih-rshift.S
+++ b/mpi/amd64/mpih-rshift.S
@@ -79,4 +79,3 @@ C_SYMBOL_NAME(_gcry_mpih_rshift:)
.Lende: psrlq %xmm1, %xmm2
movq %xmm2, -8(%rdi)
FUNC_EXIT()
- ret
diff --git a/mpi/amd64/mpih-sub1.S b/mpi/amd64/mpih-sub1.S
index ccf64963..d60b58a5 100644
--- a/mpi/amd64/mpih-sub1.S
+++ b/mpi/amd64/mpih-sub1.S
@@ -60,4 +60,3 @@ C_SYMBOL_NAME(_gcry_mpih_sub_n:)
movq %rcx, %rax /* zero %rax */
adcq %rax, %rax
FUNC_EXIT()
- ret
--
2.32.0
More information about the Gcrypt-devel
mailing list