Searched refs:limb_cnt (Results 1 - 6 of 6) sorted by relevance

/netbsd-current/external/lgpl3/gmp/dist/mpz/
H A Dtdiv_r_2exp.c38 mp_size_t limb_cnt = cnt / GMP_NUMB_BITS; local
41 if (in_size > limb_cnt)
46 x = in_ptr[limb_cnt] & (((mp_limb_t) 1 << cnt % GMP_NUMB_BITS) - 1);
49 res_size = limb_cnt + 1;
52 PTR (res)[limb_cnt] = x;
56 MPN_NORMALIZE (in_ptr, limb_cnt);
58 MPZ_REALLOC (res, limb_cnt);
60 res_size = limb_cnt;
67 limb_cnt = in_size;
68 MPZ_REALLOC (res, limb_cnt);
74 MPN_COPY (PTR (res), PTR (in), limb_cnt); local
[all...]
H A Dcfdiv_r_2exp.c46 mp_size_t usize, abs_usize, limb_cnt, i; local
58 limb_cnt = cnt / GMP_NUMB_BITS;
72 /* if already smaller than limb_cnt then do nothing */
73 if (abs_usize <= limb_cnt)
79 i = MIN (abs_usize, limb_cnt+1);
83 /* if smaller than limb_cnt then only the copy is needed */
84 if (abs_usize <= limb_cnt)
96 if (abs_usize <= limb_cnt)
100 for (i = 0; i < limb_cnt; i++)
105 if ((up[limb_cnt]
[all...]
H A Dmul_2exp.c38 mp_size_t limb_cnt; local
44 limb_cnt = cnt / GMP_NUMB_BITS;
45 rn = un + limb_cnt;
57 rlimb = mpn_lshift (rp + limb_cnt, up, un, cnt);
63 MPN_COPY_DECR (rp + limb_cnt, up, un);
68 MPN_ZERO (rp, limb_cnt);
H A Dtdiv_q_2exp.c39 mp_size_t limb_cnt; local
44 limb_cnt = cnt / GMP_NUMB_BITS;
45 rn = ABS (un) - limb_cnt;
52 up = PTR(u) + limb_cnt;
H A Dcfdiv_q_2exp.c43 mp_size_t wsize, usize, abs_usize, limb_cnt, i; local
50 limb_cnt = cnt / GMP_NUMB_BITS;
51 wsize = abs_usize - limb_cnt;
69 for (i = 0; i < limb_cnt && round == 0; i++)
75 round |= rmask & mpn_rshift (wp, up + limb_cnt, wsize, cnt);
79 MPN_COPY_INCR (wp, up + limb_cnt, wsize);
/netbsd-current/external/lgpl3/gmp/dist/mini-gmp/
H A Dmini-gmp.c2340 mp_size_t limb_cnt;
2350 limb_cnt = bit_index / GMP_LIMB_BITS;
2351 qn = GMP_ABS (un) - limb_cnt;
2355 /* Note: Below, the final indexing at limb_cnt is valid because at
2358 || !mpn_zero_p (u->_mp_d, limb_cnt)
2359 || (u->_mp_d[limb_cnt]
2372 mpn_rshift (qp, u->_mp_d + limb_cnt, qn, bit_index);
2377 mpn_copyi (qp, u->_mp_d + limb_cnt, qn);
2328 mp_size_t limb_cnt; local

Completed in 154 milliseconds