mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-29 11:41:15 +03:00
One statement per line
Signed-off-by: Tom Cosgrove <tom.cosgrove@arm.com>
This commit is contained in:
@ -298,15 +298,18 @@ mbedtls_mpi_uint mbedtls_mpi_core_add_if( mbedtls_mpi_uint *A,
|
|||||||
size_t limbs,
|
size_t limbs,
|
||||||
unsigned cond )
|
unsigned cond )
|
||||||
{
|
{
|
||||||
mbedtls_mpi_uint c = 0, t;
|
mbedtls_mpi_uint c = 0;
|
||||||
|
|
||||||
for( size_t i = 0; i < limbs; i++ )
|
for( size_t i = 0; i < limbs; i++ )
|
||||||
{
|
{
|
||||||
mbedtls_mpi_uint add = cond * B[i];
|
mbedtls_mpi_uint add = cond * B[i];
|
||||||
t = c;
|
mbedtls_mpi_uint t = c + A[i];
|
||||||
t += A[i]; c = ( t < A[i] );
|
c = ( t < A[i] );
|
||||||
t += add; c += ( t < add );
|
t += add;
|
||||||
|
c += ( t < add );
|
||||||
A[i] = t;
|
A[i] = t;
|
||||||
}
|
}
|
||||||
|
|
||||||
return( c );
|
return( c );
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -360,7 +363,9 @@ mbedtls_mpi_uint mbedtls_mpi_core_mla( mbedtls_mpi_uint *d, size_t d_len,
|
|||||||
|
|
||||||
while( excess_len-- )
|
while( excess_len-- )
|
||||||
{
|
{
|
||||||
*d += c; c = ( *d < c ); d++;
|
*d += c;
|
||||||
|
c = ( *d < c );
|
||||||
|
d++;
|
||||||
}
|
}
|
||||||
|
|
||||||
return( c );
|
return( c );
|
||||||
|
Reference in New Issue
Block a user