diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2021-04-20 19:03:15 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2021-04-20 19:03:55 +0200 |
commit | 20b224046c61ccc9a8e847cd0665f9f39e9a8ff9 (patch) | |
tree | 636d22893ed2d720957b815e736204e300eb973f | |
parent | 21367b283909cb71ef74cb0e89f77334e9eb6a61 (diff) | |
download | busybox-w32-20b224046c61ccc9a8e847cd0665f9f39e9a8ff9.tar.gz busybox-w32-20b224046c61ccc9a8e847cd0665f9f39e9a8ff9.tar.bz2 busybox-w32-20b224046c61ccc9a8e847cd0665f9f39e9a8ff9.zip |
tls: further reduce register pressure in i386 assembly
function old new delta
pstm_montgomery_reduce 435 431 -4
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | networking/tls_pstm_montgomery_reduce.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/networking/tls_pstm_montgomery_reduce.c b/networking/tls_pstm_montgomery_reduce.c index e8857f394..4181a0590 100644 --- a/networking/tls_pstm_montgomery_reduce.c +++ b/networking/tls_pstm_montgomery_reduce.c | |||
@@ -102,11 +102,11 @@ asm( \ | |||
102 | #define PROPCARRY \ | 102 | #define PROPCARRY \ |
103 | asm( \ | 103 | asm( \ |
104 | "addl %1,%0 \n\t" \ | 104 | "addl %1,%0 \n\t" \ |
105 | "setb %%al \n\t" \ | 105 | "sbb %1,%1 \n\t" \ |
106 | "movzbl %%al,%1 \n\t" \ | 106 | "neg %1 \n\t" \ |
107 | :"=g"(_c[LO]), "=r"(cy) \ | 107 | :"=g"(_c[LO]), "=r"(cy) \ |
108 | :"0"(_c[LO]), "1"(cy) \ | 108 | :"0"(_c[LO]), "1"(cy) \ |
109 | : "%eax", "cc") | 109 | :"cc") |
110 | 110 | ||
111 | /******************************************************************************/ | 111 | /******************************************************************************/ |
112 | #elif defined(PSTM_X86_64) | 112 | #elif defined(PSTM_X86_64) |