mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-03-01 13:13:28 +00:00
Remove not-needed mov in x86_64 asm
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
This commit is contained in:
parent
e97de40e7b
commit
99f0cdc0e0
@ -345,8 +345,7 @@ static inline mbedtls_ct_condition_t mbedtls_ct_uint_lt(mbedtls_ct_uint_t x, mbe
|
||||
"not %[mask] \n\t"
|
||||
"and %[mask], %[x] \n\t"
|
||||
"or %[y], %[x] \n\t"
|
||||
"mov %[x], %[mask] \n\t"
|
||||
"sar $63, %[mask] \n\t"
|
||||
"sar $63, %[x] \n\t"
|
||||
:
|
||||
[mask] "=&a" (mask),
|
||||
[x] "+&S" (x),
|
||||
@ -354,7 +353,7 @@ static inline mbedtls_ct_condition_t mbedtls_ct_uint_lt(mbedtls_ct_uint_t x, mbe
|
||||
:
|
||||
:
|
||||
);
|
||||
return (mbedtls_ct_condition_t) mask;
|
||||
return (mbedtls_ct_condition_t) x;
|
||||
#elif defined(MBEDTLS_CT_X86_ASM) && defined(MBEDTLS_CT_SIZE_32)
|
||||
uint32_t s;
|
||||
asm volatile ("mov %[x], %[s] \n\t"
|
||||
|
Loading…
x
Reference in New Issue
Block a user