Remove confusing const qualifier

Since a is not a pointer, it is passed by value and declaring it const
doesn’t make any sense and on the first read can make me miss the fact
that a is not a pointer.

Signed-off-by: Janos Follath <janos.follath@arm.com>
This commit is contained in:
Janos Follath 2022-08-22 11:19:10 +01:00
parent c459641ad1
commit 2e328c8591
2 changed files with 2 additions and 2 deletions

View file

@ -38,7 +38,7 @@
#include "bignum_core.h"
size_t mbedtls_mpi_core_clz( const mbedtls_mpi_uint a )
size_t mbedtls_mpi_core_clz( mbedtls_mpi_uint a )
{
size_t j;
mbedtls_mpi_uint mask = (mbedtls_mpi_uint) 1 << (biL - 1);

View file

@ -37,7 +37,7 @@
*
* \return The number of leading zero bits in \p a.
*/
size_t mbedtls_mpi_core_clz( const mbedtls_mpi_uint a );
size_t mbedtls_mpi_core_clz( mbedtls_mpi_uint a );
/** Return the minimum number of bits required to represent the value held
* in the MPI.