Lines Matching refs:biL
68 #define biL (ciL << 3) /* bits in limb */ macro
77 #define BITS_TO_LIMBS(i) ( (i) / biL + ( (i) % biL != 0 ) )
346 if( X->n * biL <= pos ) in mbedtls_mpi_get_bit()
349 return( ( X->p[pos / biL] >> ( pos % biL ) ) & 0x01 ); in mbedtls_mpi_get_bit()
362 size_t off = pos / biL; in mbedtls_mpi_set_bit()
363 size_t idx = pos % biL; in mbedtls_mpi_set_bit()
369 if( X->n * biL <= pos ) in mbedtls_mpi_set_bit()
394 for( j = 0; j < biL; j++, count++ ) in mbedtls_mpi_lsb()
407 mbedtls_mpi_uint mask = (mbedtls_mpi_uint) 1 << (biL - 1); in mbedtls_clz()
409 for( j = 0; j < biL; j++ ) in mbedtls_clz()
433 j = biL - mbedtls_clz( X->p[i] ); in mbedtls_mpi_bitlen()
435 return( ( i * biL ) + j ); in mbedtls_mpi_bitlen()
990 v0 = count / (biL ); in mbedtls_mpi_shift_l()
991 t1 = count & (biL - 1); in mbedtls_mpi_shift_l()
995 if( X->n * biL < i ) in mbedtls_mpi_shift_l()
1019 r1 = X->p[i] >> (biL - t1); in mbedtls_mpi_shift_l()
1040 v0 = count / biL; in mbedtls_mpi_shift_r()
1041 v1 = count & (biL - 1); in mbedtls_mpi_shift_r()
1065 r1 = X->p[i - 1] << (biL - v1); in mbedtls_mpi_shift_r()
1619 dividend = (mbedtls_t_udbl) u1 << biL; in mbedtls_int_div_int()
1622 if( quotient > ( (mbedtls_t_udbl) 1 << biL ) - 1 ) in mbedtls_int_div_int()
1623 quotient = ( (mbedtls_t_udbl) 1 << biL ) - 1; in mbedtls_int_div_int()
1643 u1 |= ( u0 >> ( biL - s ) ) & ( -(mbedtls_mpi_sint)s >> ( biL - 1 ) ); in mbedtls_int_div_int()
1731 k = mbedtls_mpi_bitlen( &Y ) % biL; in mbedtls_mpi_div_mpi()
1732 if( k < biL - 1 ) in mbedtls_mpi_div_mpi()
1734 k = biL - 1 - k; in mbedtls_mpi_div_mpi()
1742 MBEDTLS_MPI_CHK( mbedtls_mpi_shift_l( &Y, biL * ( n - t ) ) ); in mbedtls_mpi_div_mpi()
1749 MBEDTLS_MPI_CHK( mbedtls_mpi_shift_r( &Y, biL * ( n - t ) ) ); in mbedtls_mpi_div_mpi()
1778 MBEDTLS_MPI_CHK( mbedtls_mpi_shift_l( &T1, biL * ( i - t - 1 ) ) ); in mbedtls_mpi_div_mpi()
1784 MBEDTLS_MPI_CHK( mbedtls_mpi_shift_l( &T1, biL * ( i - t - 1 ) ) ); in mbedtls_mpi_div_mpi()
1930 for( i = biL; i >= 8; i /= 2 ) in mpi_montg_init()
2145 MBEDTLS_MPI_CHK( mbedtls_mpi_shift_l( &RR, N->n * 2 * biL ) ); in mbedtls_mpi_exp_mod()
2761 A.p[A.n - 1] &= ( (mbedtls_mpi_uint) 1 << ( k - ( A.n - 1 ) * biL - 1 ) ) - 1; in mpi_miller_rabin()
2930 k = n * biL; in mbedtls_mpi_gen_prime()