Home
last modified time | relevance | path

Searched refs:mpi_limb_t (Results 1 – 23 of 23) sorted by relevance

/linux-5.19.10/lib/mpi/
Dmpi-internal.h52 typedef mpi_limb_t *mpi_ptr_t; /* pointer to a limb */
117 mpi_limb_t _ql __maybe_unused; \
118 mpi_limb_t _q, _r; \
119 mpi_limb_t _xh, _xl; \
146 static inline mpi_limb_t mpihelp_add_1(mpi_ptr_t res_ptr, mpi_ptr_t s1_ptr,
147 mpi_size_t s1_size, mpi_limb_t s2_limb);
148 mpi_limb_t mpihelp_add_n(mpi_ptr_t res_ptr, mpi_ptr_t s1_ptr,
150 static inline mpi_limb_t mpihelp_add(mpi_ptr_t res_ptr, mpi_ptr_t s1_ptr, mpi_size_t s1_size,
153 static inline mpi_limb_t mpihelp_sub_1(mpi_ptr_t res_ptr, mpi_ptr_t s1_ptr,
154 mpi_size_t s1_size, mpi_limb_t s2_limb);
[all …]
Dmpih-div.c28 mpi_limb_t
30 mpi_limb_t divisor_limb) in mpihelp_mod_1()
33 mpi_limb_t n1, n0, r; in mpihelp_mod_1()
34 mpi_limb_t dummy __maybe_unused; in mpihelp_mod_1()
54 mpi_limb_t divisor_limb_inverted; in mpihelp_mod_1()
65 divisor_limb_inverted = ~(mpi_limb_t)0; in mpihelp_mod_1()
92 mpi_limb_t divisor_limb_inverted; in mpihelp_mod_1()
101 divisor_limb_inverted = ~(mpi_limb_t)0; in mpihelp_mod_1()
188 mpi_limb_t
192 mpi_limb_t most_significant_q_limb = 0; in mpihelp_divrem()
[all …]
Dmpi-inline.h23 G10_MPI_INLINE_DECL mpi_limb_t
25 mpi_size_t s1_size, mpi_limb_t s2_limb) in mpihelp_add_1()
27 mpi_limb_t x; in mpihelp_add_1()
51 G10_MPI_INLINE_DECL mpi_limb_t
55 mpi_limb_t cy = 0; in mpihelp_add()
66 G10_MPI_INLINE_DECL mpi_limb_t
68 mpi_size_t s1_size, mpi_limb_t s2_limb) in mpihelp_sub_1()
70 mpi_limb_t x; in mpihelp_sub_1()
94 G10_MPI_INLINE_DECL mpi_limb_t
98 mpi_limb_t cy = 0; in mpihelp_sub()
Dgeneric_mpih-mul2.c19 mpi_limb_t
21 mpi_size_t s1_size, mpi_limb_t s2_limb) in mpihelp_addmul_1()
23 mpi_limb_t cy_limb; in mpihelp_addmul_1()
25 mpi_limb_t prod_high, prod_low; in mpihelp_addmul_1()
26 mpi_limb_t x; in mpihelp_addmul_1()
Dgeneric_mpih-mul3.c19 mpi_limb_t
21 mpi_size_t s1_size, mpi_limb_t s2_limb) in mpihelp_submul_1()
23 mpi_limb_t cy_limb; in mpihelp_submul_1()
25 mpi_limb_t prod_high, prod_low; in mpihelp_submul_1()
26 mpi_limb_t x; in mpihelp_submul_1()
Dgeneric_mpih-mul1.c19 mpi_limb_t
21 mpi_limb_t s2_limb) in mpihelp_mul_1()
23 mpi_limb_t cy_limb; in mpihelp_mul_1()
25 mpi_limb_t prod_high, prod_low; in mpihelp_mul_1()
Dmpih-mul.c54 static mpi_limb_t
58 mpi_limb_t cy; in mul_n_basecase()
59 mpi_limb_t v_limb; in mul_n_basecase()
110 mpi_limb_t cy_limb; in mul_n()
134 mpi_limb_t cy; in mul_n()
210 mpi_limb_t cy_limb; in mpih_sqr_n_basecase()
211 mpi_limb_t v_limb; in mpih_sqr_n_basecase()
259 mpi_limb_t cy_limb; in mpih_sqr_n()
269 mpi_limb_t cy; in mpih_sqr_n()
351 mpi_limb_t cy; in mpihelp_mul_karatsuba_case()
[all …]
Dgeneric_mpih-lshift.c27 mpi_limb_t
30 mpi_limb_t high_limb, low_limb; in mpihelp_lshift()
33 mpi_limb_t retval; in mpihelp_lshift()
Dgeneric_mpih-rshift.c28 mpi_limb_t
31 mpi_limb_t high_limb, low_limb; in mpihelp_rshift()
34 mpi_limb_t retval; in mpihelp_rshift()
Dmpiutil.c116 size_t len = nlimbs * sizeof(mpi_limb_t); in mpi_alloc_limb_space()
151 p = kcalloc(nlimbs, sizeof(mpi_limb_t), GFP_KERNEL); in mpi_resize()
154 memcpy(p, a->d, a->alloced * sizeof(mpi_limb_t)); in mpi_resize()
158 a->d = kcalloc(nlimbs, sizeof(mpi_limb_t), GFP_KERNEL); in mpi_resize()
304 mpi_limb_t mask = ((mpi_limb_t)0) - swap; in mpi_swap_cond()
305 mpi_limb_t x; in mpi_swap_cond()
Dmpi-sub-ui.c53 mpi_limb_t cy; in mpi_sub_ui()
55 cy = mpihelp_add_1(w->d, u->d, u->nlimbs, (mpi_limb_t) vval); in mpi_sub_ui()
68 mpihelp_sub_1(w->d, u->d, u->nlimbs, (mpi_limb_t) vval); in mpi_sub_ui()
Dec.c186 mpi_limb_t mask = ((mpi_limb_t)0) - set; in mpih_set_cond()
187 mpi_limb_t x; in mpih_set_cond()
203 mpi_limb_t n[LIMB_SIZE_25519]; in ec_addm_25519()
204 mpi_limb_t borrow; in ec_addm_25519()
218 wp[LIMB_SIZE_25519-1] &= ~((mpi_limb_t)1 << (255 % BITS_PER_MPI_LIMB)); in ec_addm_25519()
225 mpi_limb_t n[LIMB_SIZE_25519]; in ec_subm_25519()
226 mpi_limb_t borrow; in ec_subm_25519()
239 wp[LIMB_SIZE_25519-1] &= ~((mpi_limb_t)1 << (255 % BITS_PER_MPI_LIMB)); in ec_subm_25519()
246 mpi_limb_t n[LIMB_SIZE_25519*2]; in ec_mulm_25519()
247 mpi_limb_t m[LIMB_SIZE_25519+1]; in ec_mulm_25519()
[all …]
Dgeneric_mpih-add1.c20 mpi_limb_t
24 mpi_limb_t x, y, cy; in mpihelp_add_n()
Dgeneric_mpih-sub1.c19 mpi_limb_t
23 mpi_limb_t x, y, cy; in mpihelp_sub_n()
Dmpi-div.c93 mpi_limb_t q_limb; in mpi_tdiv_qr()
131 mpi_limb_t rlimb; in mpi_tdiv_qr()
168 mpi_limb_t nlimb; in mpi_tdiv_qr()
Dmpi-pow.c152 mpi_limb_t e; in mpi_powm()
153 mpi_limb_t carry_limb; in mpi_powm()
218 mpi_limb_t tmp; in mpi_powm()
Dmpi-bit.c24 #define A_LIMB_1 ((mpi_limb_t) 1)
47 mpi_limb_t alimb = a->d[a->nlimbs - 1]; in mpi_get_nbits()
65 mpi_limb_t limb; in mpi_test_bit()
Dmpicoder.c41 mpi_limb_t a; in mpi_read_raw_data()
122 mpi_limb_t a; in mpi_fromstr()
221 mpi_limb_t alimb; in count_lzeros()
227 lzeros += sizeof(mpi_limb_t); in count_lzeros()
444 mpi_limb_t a; in mpi_read_raw_from_sgl()
Dmpih-cmp.c28 mpi_limb_t op1_word, op2_word; in mpihelp_cmp()
Dmpi-add.c43 mpi_limb_t cy; in mpi_add_ui()
122 mpi_limb_t cy = mpihelp_add(wp, up, usize, vp, vsize); in mpi_add()
Dmpi-cmp.c25 mpi_limb_t limb = v; in mpi_cmp_ui()
Dmpi-mul.c20 mpi_limb_t cy; in mpi_mul()
/linux-5.19.10/include/linux/
Dmpi.h26 typedef unsigned long int mpi_limb_t; typedef
37 mpi_limb_t *d; /* array with the limbs */