Lines Matching refs:biL

67 #define biL    (ciL << 3)               /* bits  in limb  */  macro
76 #define BITS_TO_LIMBS(i) ( (i) / biL + ( (i) % biL != 0 ) )
310 if( X->n * biL <= pos ) in mbedtls_mpi_get_bit()
313 return( ( X->p[pos / biL] >> ( pos % biL ) ) & 0x01 ); in mbedtls_mpi_get_bit()
322 size_t off = pos / biL; in mbedtls_mpi_set_bit()
323 size_t idx = pos % biL; in mbedtls_mpi_set_bit()
328 if( X->n * biL <= pos ) in mbedtls_mpi_set_bit()
352 for( j = 0; j < biL; j++, count++ ) in mbedtls_mpi_lsb()
365 mbedtls_mpi_uint mask = (mbedtls_mpi_uint) 1 << (biL - 1); in mbedtls_clz()
367 for( j = 0; j < biL; j++ ) in mbedtls_clz()
391 j = biL - mbedtls_clz( X->p[i] ); in mbedtls_mpi_bitlen()
393 return( ( i * biL ) + j ); in mbedtls_mpi_bitlen()
716 v0 = count / (biL ); in mbedtls_mpi_shift_l()
717 t1 = count & (biL - 1); in mbedtls_mpi_shift_l()
721 if( X->n * biL < i ) in mbedtls_mpi_shift_l()
745 r1 = X->p[i] >> (biL - t1); in mbedtls_mpi_shift_l()
765 v0 = count / biL; in mbedtls_mpi_shift_r()
766 v1 = count & (biL - 1); in mbedtls_mpi_shift_r()
790 r1 = X->p[i - 1] << (biL - v1); in mbedtls_mpi_shift_r()
1246 dividend = (mbedtls_t_udbl) u1 << biL; in mbedtls_int_div_int()
1249 if( quotient > ( (mbedtls_t_udbl) 1 << biL ) - 1 ) in mbedtls_int_div_int()
1250 quotient = ( (mbedtls_t_udbl) 1 << biL ) - 1; in mbedtls_int_div_int()
1270 u1 |= ( u0 >> ( biL - s ) ) & ( -(mbedtls_mpi_sint)s >> ( biL - 1 ) ); in mbedtls_int_div_int()
1345 k = mbedtls_mpi_bitlen( &Y ) % biL; in mbedtls_mpi_div_mpi()
1346 if( k < biL - 1 ) in mbedtls_mpi_div_mpi()
1348 k = biL - 1 - k; in mbedtls_mpi_div_mpi()
1356 MBEDTLS_MPI_CHK( mbedtls_mpi_shift_l( &Y, biL * ( n - t ) ) ); in mbedtls_mpi_div_mpi()
1363 MBEDTLS_MPI_CHK( mbedtls_mpi_shift_r( &Y, biL * ( n - t ) ) ); in mbedtls_mpi_div_mpi()
1393 MBEDTLS_MPI_CHK( mbedtls_mpi_shift_l( &T1, biL * ( i - t - 1 ) ) ); in mbedtls_mpi_div_mpi()
1399 MBEDTLS_MPI_CHK( mbedtls_mpi_shift_l( &T1, biL * ( i - t - 1 ) ) ); in mbedtls_mpi_div_mpi()
1536 for( i = biL; i >= 8; i /= 2 ) in mpi_montg_init()
1656 MBEDTLS_MPI_CHK( mbedtls_mpi_shift_l( &RR, N->n * 2 * biL ) ); in mbedtls_mpi_exp_mod()