mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-28 00:21:48 +03:00
Fixed bignum.c and bn_mul.h to support Thumb2 and LLVM compiler
(cherry picked from commit 52b845be34
)
This commit is contained in:
@ -934,8 +934,16 @@ int mpi_sub_int( mpi *X, const mpi *A, t_sint b )
|
||||
|
||||
/*
|
||||
* Helper for mpi multiplication
|
||||
*/
|
||||
static void mpi_mul_hlp( size_t i, t_uint *s, t_uint *d, t_uint b )
|
||||
*/
|
||||
static
|
||||
#if defined(__APPLE__) && defined(__arm__)
|
||||
/*
|
||||
* Apple LLVM version 4.2 (clang-425.0.24) (based on LLVM 3.2svn)
|
||||
* appears to need this to prevent bad ARM code generation at -O3.
|
||||
*/
|
||||
__attribute__ ((noinline))
|
||||
#endif
|
||||
void mpi_mul_hlp( size_t i, t_uint *s, t_uint *d, t_uint b )
|
||||
{
|
||||
t_uint c = 0, t = 0;
|
||||
|
||||
|
Reference in New Issue
Block a user