mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-04-19 08:42:40 +00:00
Improve coding style
Co-authored-by: Tom Cosgrove <81633263+tom-cosgrove-arm@users.noreply.github.com> Co-authored-by: Werner Lewis <werner.wmlewis@gmail.com> Signed-off-by: Janos Follath <janos.follath@arm.com>
This commit is contained in:
parent
b7a88eca42
commit
ca5688e10c
@ -174,7 +174,10 @@ int mbedtls_mpi_core_read_le( mbedtls_mpi_uint *X,
|
|||||||
memset( X, 0, X_limbs * ciL );
|
memset( X, 0, X_limbs * ciL );
|
||||||
|
|
||||||
for( size_t i = 0; i < input_length; i++ )
|
for( size_t i = 0; i < input_length; i++ )
|
||||||
X[i / ciL] |= ((mbedtls_mpi_uint) input[i]) << ((i % ciL) << 3);
|
{
|
||||||
|
size_t offset = ( ( i % ciL ) << 3 );
|
||||||
|
X[i / ciL] |= ( (mbedtls_mpi_uint) input[i] ) << offset;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return( 0 );
|
return( 0 );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user