mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-24 00:06:32 +01:00
gen_prime: ensure X = 2 mod 3 -> 2.5x speedup
This commit is contained in:
parent
711507a726
commit
0160eacc82
2 changed files with 22 additions and 5 deletions
|
|
@ -58,7 +58,7 @@ typedef UINT64 uint64_t;
|
|||
#define POLARSSL_ERR_MPI_NOT_ACCEPTABLE -0x000E /**< The input arguments are not acceptable. */
|
||||
#define POLARSSL_ERR_MPI_MALLOC_FAILED -0x0010 /**< Memory allocation failed. */
|
||||
|
||||
#define MPI_CHK(f) if( ( ret = f ) != 0 ) goto cleanup
|
||||
#define MPI_CHK(f) do { if( ( ret = f ) != 0 ) goto cleanup; } while( 0 )
|
||||
|
||||
/*
|
||||
* Maximum size MPIs are allowed to grow to in number of limbs.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue