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>
This commit is contained in:
Denys Vlasenko 2021-04-20 19:03:15 +02:00
parent 21367b2839
commit 20b224046c

View File

@ -102,11 +102,11 @@ asm( \
#define PROPCARRY \ #define PROPCARRY \
asm( \ asm( \
"addl %1,%0 \n\t" \ "addl %1,%0 \n\t" \
"setb %%al \n\t" \ "sbb %1,%1 \n\t" \
"movzbl %%al,%1 \n\t" \ "neg %1 \n\t" \
:"=g"(_c[LO]), "=r"(cy) \ :"=g"(_c[LO]), "=r"(cy) \
:"0"(_c[LO]), "1"(cy) \ :"0"(_c[LO]), "1"(cy) \
: "%eax", "cc") :"cc")
/******************************************************************************/ /******************************************************************************/
#elif defined(PSTM_X86_64) #elif defined(PSTM_X86_64)