Searched refs:normalization_steps (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/lib/crypto/mpi/ |
H A D | mpih-div.c | 50 int normalization_steps; in mpihelp_mod_1() local 52 normalization_steps = count_leading_zeros(divisor_limb); in mpihelp_mod_1() 53 if (normalization_steps) { in mpihelp_mod_1() 56 divisor_limb <<= normalization_steps; in mpihelp_mod_1() 71 r = n1 >> (BITS_PER_MPI_LIMB - normalization_steps); in mpihelp_mod_1() 82 ((n1 << normalization_steps) in mpihelp_mod_1() 83 | (n0 >> (BITS_PER_MPI_LIMB - normalization_steps))), in mpihelp_mod_1() 88 n1 << normalization_steps, in mpihelp_mod_1() 90 return r >> normalization_steps; in mpihelp_mod_1() 123 int normalization_steps; in mpihelp_mod_1() local [all …]
|
H A D | mpi-div.c | 92 unsigned int normalization_steps; in mpi_tdiv_qr() local 160 normalization_steps = count_leading_zeros(dp[dsize - 1]); in mpi_tdiv_qr() 166 if (normalization_steps) { in mpi_tdiv_qr() 175 mpihelp_lshift(tp, dp, dsize, normalization_steps); in mpi_tdiv_qr() 182 nlimb = mpihelp_lshift(rp, np, nsize, normalization_steps); in mpi_tdiv_qr() 223 if (normalization_steps && rsize) { in mpi_tdiv_qr() 224 mpihelp_rshift(rp, rp, rsize, normalization_steps); in mpi_tdiv_qr()
|