Home
last modified time | relevance | path

Searched refs:BITS_PER_MPI_LIMB (Results 1 – 8 of 8) sorted by relevance

/linux-6.3-rc2/lib/mpi/
A Dmpi-bit.c51 n = BITS_PER_MPI_LIMB; in mpi_get_nbits()
52 n = BITS_PER_MPI_LIMB - n + (a->nlimbs - 1) * BITS_PER_MPI_LIMB; in mpi_get_nbits()
67 limbno = n / BITS_PER_MPI_LIMB; in mpi_test_bit()
68 bitno = n % BITS_PER_MPI_LIMB; in mpi_test_bit()
84 limbno = n / BITS_PER_MPI_LIMB; in mpi_set_bit()
85 bitno = n % BITS_PER_MPI_LIMB; in mpi_set_bit()
103 limbno = n / BITS_PER_MPI_LIMB; in mpi_set_highbit()
104 bitno = n % BITS_PER_MPI_LIMB; in mpi_set_highbit()
126 limbno = n / BITS_PER_MPI_LIMB; in mpi_clear_highbit()
127 bitno = n % BITS_PER_MPI_LIMB; in mpi_clear_highbit()
[all …]
A Dmpih-div.c71 r = n1 >> (BITS_PER_MPI_LIMB - normalization_steps); in mpihelp_mod_1()
83 | (n0 >> (BITS_PER_MPI_LIMB - normalization_steps))), in mpihelp_mod_1()
130 r = n1 >> (BITS_PER_MPI_LIMB - normalization_steps); in mpihelp_mod_1()
142 | (n0 >> (BITS_PER_MPI_LIMB - normalization_steps))), in mpihelp_mod_1()
420 r = n1 >> (BITS_PER_MPI_LIMB - normalization_steps); in mpihelp_divmod_1()
432 | (n0 >> (BITS_PER_MPI_LIMB - normalization_steps))), in mpihelp_divmod_1()
478 r = n1 >> (BITS_PER_MPI_LIMB - normalization_steps); in mpihelp_divmod_1()
490 | (n0 >> (BITS_PER_MPI_LIMB - normalization_steps))), in mpihelp_divmod_1()
A Dgeneric_mpih-rshift.c38 sh_2 = BITS_PER_MPI_LIMB - sh_1; in mpihelp_rshift()
A Dgeneric_mpih-lshift.c37 sh_2 = BITS_PER_MPI_LIMB - sh_1; in mpihelp_lshift()
A Dmpi-pow.c165 c = BITS_PER_MPI_LIMB - 1 - c; in mpi_powm()
252 c = BITS_PER_MPI_LIMB; in mpi_powm()
A Dec.c197 #define LIMB_SIZE_25519 ((256+BITS_PER_MPI_LIMB-1)/BITS_PER_MPI_LIMB)
218 wp[LIMB_SIZE_25519-1] &= ~((mpi_limb_t)1 << (255 % BITS_PER_MPI_LIMB)); in ec_addm_25519()
239 wp[LIMB_SIZE_25519-1] &= ~((mpi_limb_t)1 << (255 % BITS_PER_MPI_LIMB)); in ec_subm_25519()
261 wp[LIMB_SIZE_25519-1] &= ~((mpi_limb_t)1 << (255 % BITS_PER_MPI_LIMB)); in ec_mulm_25519()
264 mpihelp_rshift(m, m, LIMB_SIZE_25519+1, (255 % BITS_PER_MPI_LIMB)); in ec_mulm_25519()
280 msb = (wp[LIMB_SIZE_25519-1] >> (255 % BITS_PER_MPI_LIMB)); in ec_mulm_25519()
282 wp[LIMB_SIZE_25519-1] &= ~((mpi_limb_t)1 << (255 % BITS_PER_MPI_LIMB)); in ec_mulm_25519()
303 #define LIMB_SIZE_448 ((448+BITS_PER_MPI_LIMB-1)/BITS_PER_MPI_LIMB)
A Dmpi-internal.h213 #define W_TYPE_SIZE BITS_PER_MPI_LIMB
/linux-6.3-rc2/include/linux/
A Dmpi.h24 #define BITS_PER_MPI_LIMB BITS_PER_LONG macro
53 return mpi_alloc((nbits + BITS_PER_MPI_LIMB - 1) / BITS_PER_MPI_LIMB); in mpi_new()

Completed in 11 milliseconds