mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-29 11:34:15 +01:00
Avoid "unreachable code" warning
This commit is contained in:
parent
3d52ab76f6
commit
fdf3f0e671
@ -1441,14 +1441,13 @@ int mpi_mod_int( t_uint *r, const mpi *A, t_sint b )
|
|||||||
static void mpi_montg_init( t_uint *mm, const mpi *N )
|
static void mpi_montg_init( t_uint *mm, const mpi *N )
|
||||||
{
|
{
|
||||||
t_uint x, m0 = N->p[0];
|
t_uint x, m0 = N->p[0];
|
||||||
|
unsigned int i;
|
||||||
|
|
||||||
x = m0;
|
x = m0;
|
||||||
x += ( ( m0 + 2 ) & 4 ) << 1;
|
x += ( ( m0 + 2 ) & 4 ) << 1;
|
||||||
x *= ( 2 - ( m0 * x ) );
|
|
||||||
|
|
||||||
if( biL >= 16 ) x *= ( 2 - ( m0 * x ) );
|
for( i = biL; i >= 8; i /= 2 )
|
||||||
if( biL >= 32 ) x *= ( 2 - ( m0 * x ) );
|
x *= ( 2 - ( m0 * x ) );
|
||||||
if( biL >= 64 ) x *= ( 2 - ( m0 * x ) );
|
|
||||||
|
|
||||||
*mm = ~x + 1;
|
*mm = ~x + 1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user