tls: fix pstm asm constraint problem

function                                             old     new   delta
pstm_sqr_comba                                       551     475     -76

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko
2017-07-15 17:13:08 +02:00
parent 367a55c7d7
commit 79376ecdbd
3 changed files with 7 additions and 6 deletions

View File

@@ -26,10 +26,8 @@
#undef USE_SEED
/* pstm: multiprecision numbers */
#undef DISABLE_PSTM
#if defined(__GNUC__) && defined(__i386__) && ENABLE_STATIC
#if defined(__GNUC__) && defined(__i386__)
/* PSTM_X86 works correctly. +25 bytes. */
/* Only enabled on static build since tls_pstm_mul_comba.c::MULADD
* and tls_pstm_sqr_comba.c::SQRADD2 need too many registers, choke when ebx is not available */
# define PSTM_32BIT
# define PSTM_X86
#endif