Lines Matching refs:biL
65 #define biL (ciL << 3) /* bits in limb */ macro
74 #define BITS_TO_LIMBS(i) ( (i) / biL + ( (i) % biL != 0 ) )
299 if( X->n * biL <= pos ) in mbedtls_mpi_get_bit()
302 return( ( X->p[pos / biL] >> ( pos % biL ) ) & 0x01 ); in mbedtls_mpi_get_bit()
315 size_t off = pos / biL; in mbedtls_mpi_set_bit()
316 size_t idx = pos % biL; in mbedtls_mpi_set_bit()
322 if( X->n * biL <= pos ) in mbedtls_mpi_set_bit()
347 for( j = 0; j < biL; j++, count++ ) in mbedtls_mpi_lsb()
360 mbedtls_mpi_uint mask = (mbedtls_mpi_uint) 1 << (biL - 1); in mbedtls_clz()
362 for( j = 0; j < biL; j++ ) in mbedtls_clz()
386 j = biL - mbedtls_clz( X->p[i] ); in mbedtls_mpi_bitlen()
388 return( ( i * biL ) + j ); in mbedtls_mpi_bitlen()
943 v0 = count / (biL ); in mbedtls_mpi_shift_l()
944 t1 = count & (biL - 1); in mbedtls_mpi_shift_l()
948 if( X->n * biL < i ) in mbedtls_mpi_shift_l()
972 r1 = X->p[i] >> (biL - t1); in mbedtls_mpi_shift_l()
993 v0 = count / biL; in mbedtls_mpi_shift_r()
994 v1 = count & (biL - 1); in mbedtls_mpi_shift_r()
1018 r1 = X->p[i - 1] << (biL - v1); in mbedtls_mpi_shift_r()
1572 dividend = (mbedtls_t_udbl) u1 << biL; in mbedtls_int_div_int()
1575 if( quotient > ( (mbedtls_t_udbl) 1 << biL ) - 1 ) in mbedtls_int_div_int()
1576 quotient = ( (mbedtls_t_udbl) 1 << biL ) - 1; in mbedtls_int_div_int()
1596 u1 |= ( u0 >> ( biL - s ) ) & ( -(mbedtls_mpi_sint)s >> ( biL - 1 ) ); in mbedtls_int_div_int()
1684 k = mbedtls_mpi_bitlen( &Y ) % biL; in mbedtls_mpi_div_mpi()
1685 if( k < biL - 1 ) in mbedtls_mpi_div_mpi()
1687 k = biL - 1 - k; in mbedtls_mpi_div_mpi()
1695 MBEDTLS_MPI_CHK( mbedtls_mpi_shift_l( &Y, biL * ( n - t ) ) ); in mbedtls_mpi_div_mpi()
1702 MBEDTLS_MPI_CHK( mbedtls_mpi_shift_r( &Y, biL * ( n - t ) ) ); in mbedtls_mpi_div_mpi()
1731 MBEDTLS_MPI_CHK( mbedtls_mpi_shift_l( &T1, biL * ( i - t - 1 ) ) ); in mbedtls_mpi_div_mpi()
1737 MBEDTLS_MPI_CHK( mbedtls_mpi_shift_l( &T1, biL * ( i - t - 1 ) ) ); in mbedtls_mpi_div_mpi()
1883 for( i = biL; i >= 8; i /= 2 ) in mpi_montg_init()
2080 MBEDTLS_MPI_CHK( mbedtls_mpi_shift_l( &RR, N->n * 2 * biL ) ); in mbedtls_mpi_exp_mod()
2682 A.p[A.n - 1] &= ( (mbedtls_mpi_uint) 1 << ( k - ( A.n - 1 ) * biL - 1 ) ) - 1; in mpi_miller_rabin()
2831 k = n * biL; in mbedtls_mpi_gen_prime()