Home
last modified time | relevance | path

Searched refs:GMP_NUMB_BITS (Results 1 – 25 of 1560) sorted by relevance

12345678910>>...63

/dports/math/kalker/gmp-mpfr-sys-21966f4bfb56c87d407eb14c72e92ef4e55856aa/mpfr-4.1.0-p13-c/src/
H A Dget_str.c256 #elif GMP_NUMB_BITS == 8
273 #elif GMP_NUMB_BITS == 8
290 #elif GMP_NUMB_BITS == 8
307 #elif GMP_NUMB_BITS == 8
324 #elif GMP_NUMB_BITS == 8
341 #elif GMP_NUMB_BITS == 8
358 #elif GMP_NUMB_BITS == 8
375 #elif GMP_NUMB_BITS == 8
392 #elif GMP_NUMB_BITS == 8
409 #elif GMP_NUMB_BITS == 8
[all …]
H A Deq.c81 if ((unsigned long) vsize * GMP_NUMB_BITS < n_bits) in mpfr_eq()
90 remains -= GMP_NUMB_BITS; in mpfr_eq()
95 if (k >= 0 && (((remains < GMP_NUMB_BITS) && in mpfr_eq()
115 size = 1 + (n_bits - 1) / GMP_NUMB_BITS; in mpfr_eq()
116 else if (n_bits > (unsigned long) size * GMP_NUMB_BITS) in mpfr_eq()
117 n_bits = size * GMP_NUMB_BITS; in mpfr_eq()
126 n_bits -= GMP_NUMB_BITS; in mpfr_eq()
134 MPFR_ASSERTD(n_bits <= GMP_NUMB_BITS); in mpfr_eq()
136 if (n_bits & (GMP_NUMB_BITS - 1)) in mpfr_eq()
137 return (up[i] >> (GMP_NUMB_BITS - (n_bits & (GMP_NUMB_BITS - 1))) == in mpfr_eq()
[all …]
H A Dsub1sp.c190 sh = GMP_NUMB_BITS - p; in mpfr_sub1sp1()
192 if (d < GMP_NUMB_BITS) in mpfr_sub1sp1()
515 MPFR_ASSERTD(GMP_NUMB_BITS < p && p < 2 * GMP_NUMB_BITS); in mpfr_sub1sp2()
1058 MPFR_ASSERTD(2 * GMP_NUMB_BITS < p && p < 3 * GMP_NUMB_BITS); in mpfr_sub1sp3()
1210 : (cp[2] << (2*GMP_NUMB_BITS-d)) | (cp[1] >> (d - GMP_NUMB_BITS)); in mpfr_sub1sp3()
1251 MPFR_ASSERTD (2*GMP_NUMB_BITS <= d && d < 3*GMP_NUMB_BITS); in mpfr_sub1sp3()
1456 if (p < GMP_NUMB_BITS) in mpfr_sub1sp()
1460 if (GMP_NUMB_BITS < p && p < 2 * GMP_NUMB_BITS) in mpfr_sub1sp()
1465 if (p == GMP_NUMB_BITS) in mpfr_sub1sp()
1469 if (2 * GMP_NUMB_BITS < p && p < 3 * GMP_NUMB_BITS) in mpfr_sub1sp()
[all …]
H A Dconstant.c32 #elif GMP_NUMB_BITS == 8
34 #elif GMP_NUMB_BITS == 16
36 #elif GMP_NUMB_BITS == 32
38 #elif GMP_NUMB_BITS == 64
40 #elif GMP_NUMB_BITS == 96
42 #elif GMP_NUMB_BITS == 128
52 #elif GMP_NUMB_BITS == 8
54 #elif GMP_NUMB_BITS == 16
56 #elif GMP_NUMB_BITS == 32
58 #elif GMP_NUMB_BITS == 64
[all …]
H A Dset_d.c57 #if GMP_NUMB_BITS >= 64 in extract_double()
61 #elif GMP_NUMB_BITS == 32 in extract_double()
64 #elif GMP_NUMB_BITS == 16 in extract_double()
86 #if GMP_NUMB_BITS >= 64 in extract_double()
90 #elif GMP_NUMB_BITS == 32 in extract_double()
103 #elif GMP_NUMB_BITS == 16 in extract_double()
190 #if GMP_NUMB_BITS >= 64 in extract_double()
200 #elif GMP_NUMB_BITS == 32 in extract_double()
221 #if GMP_NUMB_BITS <= 32 in extract_double()
224 #if GMP_NUMB_BITS <= 16 in extract_double()
[all …]
H A Dround_p.c78 err = (mpfr_prec_t) bn * GMP_NUMB_BITS; in mpfr_round_p()
83 k = prec / GMP_NUMB_BITS; in mpfr_round_p()
84 s = GMP_NUMB_BITS - prec % GMP_NUMB_BITS; in mpfr_round_p()
85 n = err / GMP_NUMB_BITS - k; in mpfr_round_p()
93 mask = s == GMP_NUMB_BITS ? MPFR_LIMB_MAX : MPFR_LIMB_MASK (s); in mpfr_round_p()
99 s = GMP_NUMB_BITS - err % GMP_NUMB_BITS; in mpfr_round_p()
100 MPFR_ASSERTD (s < GMP_NUMB_BITS); in mpfr_round_p()
112 s = GMP_NUMB_BITS - err % GMP_NUMB_BITS; in mpfr_round_p()
113 if (s == GMP_NUMB_BITS) in mpfr_round_p()
125 s = GMP_NUMB_BITS - err % GMP_NUMB_BITS; in mpfr_round_p()
[all …]
H A Dadd1sp.c378 MPFR_ASSERTD(GMP_NUMB_BITS < p && p < 2 * GMP_NUMB_BITS); in mpfr_add1sp2()
631 MPFR_ASSERTD(2 * GMP_NUMB_BITS < p && p < 3 * GMP_NUMB_BITS); in mpfr_add1sp3()
694 : (cp[2] << (2*GMP_NUMB_BITS-d)) | (cp[1] >> (d - GMP_NUMB_BITS)); in mpfr_add1sp3()
712 MPFR_ASSERTD (2*GMP_NUMB_BITS <= d && d < 3*GMP_NUMB_BITS); in mpfr_add1sp3()
713 sb = (d == 2*GMP_NUMB_BITS ? 0 : cp[2] << (3*GMP_NUMB_BITS - d)) in mpfr_add1sp3()
791 if (d < GMP_NUMB_BITS) in mpfr_addrsh()
879 if (p < GMP_NUMB_BITS) in mpfr_add1sp()
882 if (GMP_NUMB_BITS < p && p < 2 * GMP_NUMB_BITS) in mpfr_add1sp()
887 if (p == GMP_NUMB_BITS) in mpfr_add1sp()
890 if (2 * GMP_NUMB_BITS < p && p < 3 * GMP_NUMB_BITS) in mpfr_add1sp()
[all …]
/dports/math/gmp/gmp-6.2.1/tests/mpn/
H A Dt-get_d.c43 GMP_NUMB_BITS - 2, GMP_NUMB_BITS - 1, in check_onebit()
45 GMP_NUMB_BITS + 1, GMP_NUMB_BITS + 2, in check_onebit()
46 2 * GMP_NUMB_BITS - 2, 2 * GMP_NUMB_BITS - 1, in check_onebit()
48 2 * GMP_NUMB_BITS + 1, 2 * GMP_NUMB_BITS + 2, in check_onebit()
49 3 * GMP_NUMB_BITS - 2, 3 * GMP_NUMB_BITS - 1, in check_onebit()
51 3 * GMP_NUMB_BITS + 1, 3 * GMP_NUMB_BITS + 2, in check_onebit()
52 4 * GMP_NUMB_BITS - 2, 4 * GMP_NUMB_BITS - 1, in check_onebit()
54 4 * GMP_NUMB_BITS + 1, 4 * GMP_NUMB_BITS + 2, in check_onebit()
55 5 * GMP_NUMB_BITS - 2, 5 * GMP_NUMB_BITS - 1, in check_onebit()
57 5 * GMP_NUMB_BITS + 1, 5 * GMP_NUMB_BITS + 2, in check_onebit()
[all …]
/dports/math/mpir/mpir-3.0.0/tests/mpn/
H A Dt-get_d.c45 GMP_NUMB_BITS - 2, GMP_NUMB_BITS - 1, in check_onebit()
47 GMP_NUMB_BITS + 1, GMP_NUMB_BITS + 2, in check_onebit()
48 2 * GMP_NUMB_BITS - 2, 2 * GMP_NUMB_BITS - 1, in check_onebit()
50 2 * GMP_NUMB_BITS + 1, 2 * GMP_NUMB_BITS + 2, in check_onebit()
51 3 * GMP_NUMB_BITS - 2, 3 * GMP_NUMB_BITS - 1, in check_onebit()
53 3 * GMP_NUMB_BITS + 1, 3 * GMP_NUMB_BITS + 2, in check_onebit()
54 4 * GMP_NUMB_BITS - 2, 4 * GMP_NUMB_BITS - 1, in check_onebit()
56 4 * GMP_NUMB_BITS + 1, 4 * GMP_NUMB_BITS + 2, in check_onebit()
57 5 * GMP_NUMB_BITS - 2, 5 * GMP_NUMB_BITS - 1, in check_onebit()
59 5 * GMP_NUMB_BITS + 1, 5 * GMP_NUMB_BITS + 2, in check_onebit()
[all …]
/dports/math/mingw32-libgmp/gmp-6.0.0/tests/mpn/
H A Dt-get_d.c44 GMP_NUMB_BITS - 2, GMP_NUMB_BITS - 1, in check_onebit()
46 GMP_NUMB_BITS + 1, GMP_NUMB_BITS + 2, in check_onebit()
47 2 * GMP_NUMB_BITS - 2, 2 * GMP_NUMB_BITS - 1, in check_onebit()
49 2 * GMP_NUMB_BITS + 1, 2 * GMP_NUMB_BITS + 2, in check_onebit()
50 3 * GMP_NUMB_BITS - 2, 3 * GMP_NUMB_BITS - 1, in check_onebit()
52 3 * GMP_NUMB_BITS + 1, 3 * GMP_NUMB_BITS + 2, in check_onebit()
53 4 * GMP_NUMB_BITS - 2, 4 * GMP_NUMB_BITS - 1, in check_onebit()
55 4 * GMP_NUMB_BITS + 1, 4 * GMP_NUMB_BITS + 2, in check_onebit()
56 5 * GMP_NUMB_BITS - 2, 5 * GMP_NUMB_BITS - 1, in check_onebit()
58 5 * GMP_NUMB_BITS + 1, 5 * GMP_NUMB_BITS + 2, in check_onebit()
[all …]
/dports/math/kalker/gmp-mpfr-sys-21966f4bfb56c87d407eb14c72e92ef4e55856aa/gmp-6.2.1-c/tests/mpn/
H A Dt-get_d.c43 GMP_NUMB_BITS - 2, GMP_NUMB_BITS - 1, in check_onebit()
45 GMP_NUMB_BITS + 1, GMP_NUMB_BITS + 2, in check_onebit()
46 2 * GMP_NUMB_BITS - 2, 2 * GMP_NUMB_BITS - 1, in check_onebit()
48 2 * GMP_NUMB_BITS + 1, 2 * GMP_NUMB_BITS + 2, in check_onebit()
49 3 * GMP_NUMB_BITS - 2, 3 * GMP_NUMB_BITS - 1, in check_onebit()
51 3 * GMP_NUMB_BITS + 1, 3 * GMP_NUMB_BITS + 2, in check_onebit()
52 4 * GMP_NUMB_BITS - 2, 4 * GMP_NUMB_BITS - 1, in check_onebit()
54 4 * GMP_NUMB_BITS + 1, 4 * GMP_NUMB_BITS + 2, in check_onebit()
55 5 * GMP_NUMB_BITS - 2, 5 * GMP_NUMB_BITS - 1, in check_onebit()
57 5 * GMP_NUMB_BITS + 1, 5 * GMP_NUMB_BITS + 2, in check_onebit()
[all …]
/dports/math/gap/gap-4.11.0/extern/gmp/tests/mpn/
H A Dt-get_d.c44 GMP_NUMB_BITS - 2, GMP_NUMB_BITS - 1, in check_onebit()
46 GMP_NUMB_BITS + 1, GMP_NUMB_BITS + 2, in check_onebit()
47 2 * GMP_NUMB_BITS - 2, 2 * GMP_NUMB_BITS - 1, in check_onebit()
49 2 * GMP_NUMB_BITS + 1, 2 * GMP_NUMB_BITS + 2, in check_onebit()
50 3 * GMP_NUMB_BITS - 2, 3 * GMP_NUMB_BITS - 1, in check_onebit()
52 3 * GMP_NUMB_BITS + 1, 3 * GMP_NUMB_BITS + 2, in check_onebit()
53 4 * GMP_NUMB_BITS - 2, 4 * GMP_NUMB_BITS - 1, in check_onebit()
55 4 * GMP_NUMB_BITS + 1, 4 * GMP_NUMB_BITS + 2, in check_onebit()
56 5 * GMP_NUMB_BITS - 2, 5 * GMP_NUMB_BITS - 1, in check_onebit()
58 5 * GMP_NUMB_BITS + 1, 5 * GMP_NUMB_BITS + 2, in check_onebit()
[all …]
/dports/math/mppp/mppp-0.26/test/
H A Dinteger_limb_size_nbits.cpp23 REQUIRE(detail::limb_size_nbits(::mp_limb_t(1) << (GMP_NUMB_BITS - 1)) == GMP_NUMB_BITS);
24 REQUIRE(detail::limb_size_nbits(::mp_limb_t(1) << (GMP_NUMB_BITS - 2)) == GMP_NUMB_BITS - 1);
25 REQUIRE(detail::limb_size_nbits((::mp_limb_t(1) << (GMP_NUMB_BITS - 1)) + 1) == GMP_NUMB_BITS);
26 REQUIRE(detail::limb_size_nbits(::mp_limb_t(1) << (GMP_NUMB_BITS - 2)) == GMP_NUMB_BITS - 1);
27 …REQUIRE(detail::limb_size_nbits((::mp_limb_t(1) << (GMP_NUMB_BITS - 2)) + 1) == GMP_NUMB_BITS - 1);
37 l = ::mp_limb_t(1) << (GMP_NUMB_BITS - 1);
38 REQUIRE(static_cast<unsigned>(mpn_sizeinbase(&l, 1, 2)) == GMP_NUMB_BITS);
40 REQUIRE(static_cast<unsigned>(mpn_sizeinbase(&l, 1, 2)) == GMP_NUMB_BITS);
41 l = ::mp_limb_t(1) << (GMP_NUMB_BITS - 2);
42 REQUIRE(static_cast<unsigned>(mpn_sizeinbase(&l, 1, 2)) == GMP_NUMB_BITS - 1);
[all …]
/dports/math/mingw32-libgmp/gmp-6.0.0/mpn/generic/
H A Drootrem.c183 MPN_RSHIFT (cy, rp, up + kk / GMP_NUMB_BITS, rn, kk % GMP_NUMB_BITS); in mpn_rootrem_internal()
254 MPN_LSHIFT (cy, rp + b / GMP_NUMB_BITS, rp, rn, b % GMP_NUMB_BITS); in mpn_rootrem_internal()
255 rn = rn + b / GMP_NUMB_BITS; in mpn_rootrem_internal()
270 nl = 1 + (kk + b - 1) / GMP_NUMB_BITS - (kk / GMP_NUMB_BITS); in mpn_rootrem_internal()
281 MPN_RSHIFT (cy, rp, up + kk / GMP_NUMB_BITS, nl, kk % GMP_NUMB_BITS); in mpn_rootrem_internal()
336 MPN_LSHIFT (cy, sp + b / GMP_NUMB_BITS, sp, sn, b % GMP_NUMB_BITS); in mpn_rootrem_internal()
337 sn = sn + b / GMP_NUMB_BITS; in mpn_rootrem_internal()
351 save = sp[b / GMP_NUMB_BITS]; in mpn_rootrem_internal()
354 sp[b / GMP_NUMB_BITS] |= save; in mpn_rootrem_internal()
363 MPN_RSHIFT (cy, rp, up + kk / GMP_NUMB_BITS, un - kk / GMP_NUMB_BITS, kk % GMP_NUMB_BITS); in mpn_rootrem_internal()
[all …]
/dports/math/mpir/mpir-3.0.0/mpn/generic/
H A Drootrem.c201 MPN_RSHIFT (cy, rp, up + kk / GMP_NUMB_BITS, rn, kk % GMP_NUMB_BITS); in mpn_rootrem_internal()
259 MPN_LSHIFT (cy, rp + b / GMP_NUMB_BITS, rp, rn, b % GMP_NUMB_BITS); in mpn_rootrem_internal()
260 rn = rn + b / GMP_NUMB_BITS; in mpn_rootrem_internal()
275 nl = 1 + (kk + b - 1) / GMP_NUMB_BITS - (kk / GMP_NUMB_BITS); in mpn_rootrem_internal()
286 MPN_RSHIFT (cy, rp, up + kk / GMP_NUMB_BITS, nl, kk % GMP_NUMB_BITS); in mpn_rootrem_internal()
341 MPN_LSHIFT (cy, sp + b / GMP_NUMB_BITS, sp, sn, b % GMP_NUMB_BITS); in mpn_rootrem_internal()
342 sn = sn + b / GMP_NUMB_BITS; in mpn_rootrem_internal()
356 save = sp[b / GMP_NUMB_BITS]; in mpn_rootrem_internal()
359 sp[b / GMP_NUMB_BITS] |= save; in mpn_rootrem_internal()
368 MPN_RSHIFT (cy, rp, up + kk / GMP_NUMB_BITS, un - kk / GMP_NUMB_BITS, kk % GMP_NUMB_BITS); in mpn_rootrem_internal()
[all …]
H A Drandom2.c30 #if GMP_NUMB_BITS < 32
31 #define BITS_PER_RANDCALL GMP_NUMB_BITS
52 bit_pos = ran % GMP_NUMB_BITS; in mpn_random2()
54 gmp_rrandomb (rp, rstate, n * GMP_NUMB_BITS - bit_pos); in mpn_random2()
66 i = (nbits + GMP_NUMB_BITS - 1) / GMP_NUMB_BITS - 1; in gmp_rrandomb()
67 rp[i] = GMP_NUMB_MAX >> (GMP_NUMB_BITS - (nbits % GMP_NUMB_BITS)) % GMP_NUMB_BITS; in gmp_rrandomb()
86 rp[bi / GMP_NUMB_BITS] ^= CNST_LIMB (1) << bi % GMP_NUMB_BITS; in gmp_rrandomb()
92 mpn_incr_u (rp + bi / GMP_NUMB_BITS, CNST_LIMB (1) << bi % GMP_NUMB_BITS); in gmp_rrandomb()
H A Drrandom.c35 #if GMP_NUMB_BITS < 32
36 #define BITS_PER_RANDCALL GMP_NUMB_BITS
55 bit_pos = ran % GMP_NUMB_BITS; in mpn_rrandom()
57 gmp_rrandomb (rp, rnd, n * GMP_NUMB_BITS - bit_pos); in mpn_rrandom()
69 i = (nbits + GMP_NUMB_BITS - 1) / GMP_NUMB_BITS - 1; in gmp_rrandomb()
70 rp[i] = GMP_NUMB_MAX >> (GMP_NUMB_BITS - (nbits % GMP_NUMB_BITS)) % GMP_NUMB_BITS; in gmp_rrandomb()
89 rp[bi / GMP_NUMB_BITS] ^= CNST_LIMB (1) << bi % GMP_NUMB_BITS; in gmp_rrandomb()
95 mpn_incr_u (rp + bi / GMP_NUMB_BITS, CNST_LIMB (1) << bi % GMP_NUMB_BITS); in gmp_rrandomb()
/dports/math/gmp/gmp-6.2.1/
H A Dextract-dbl.c163 sc = (unsigned) (exp + 64 * GMP_NUMB_BITS) % GMP_NUMB_BITS; in __gmp_extract_double()
166 exp = (exp + 64 * GMP_NUMB_BITS) / GMP_NUMB_BITS - 64 * GMP_NUMB_BITS / GMP_NUMB_BITS + 1; in __gmp_extract_double()
271 rp[0] = ((manh << (GMP_NUMB_BITS - GMP_NAIL_BITS + sc)) in __gmp_extract_double()
285 rp[i] = manh >> (BITS_PER_ULONG - GMP_NUMB_BITS); in __gmp_extract_double()
286 manh = ((manh << GMP_NUMB_BITS) in __gmp_extract_double()
287 | (manl >> (BITS_PER_ULONG - GMP_NUMB_BITS))); in __gmp_extract_double()
288 manl = manl << GMP_NUMB_BITS; in __gmp_extract_double()
301 rp[i] = manh >> (BITS_PER_ULONG - GMP_NUMB_BITS); in __gmp_extract_double()
302 manh = ((manh << GMP_NUMB_BITS) in __gmp_extract_double()
303 | (manl >> (BITS_PER_ULONG - GMP_NUMB_BITS))); in __gmp_extract_double()
[all …]
/dports/math/gap/gap-4.11.0/extern/gmp/
H A Dextract-dbl.c164 sc = (unsigned) (exp + 64 * GMP_NUMB_BITS) % GMP_NUMB_BITS; in __gmp_extract_double()
167 exp = (exp + 64 * GMP_NUMB_BITS) / GMP_NUMB_BITS - 64 * GMP_NUMB_BITS / GMP_NUMB_BITS + 1; in __gmp_extract_double()
272 rp[0] = ((manh << (GMP_NUMB_BITS - GMP_NAIL_BITS + sc)) in __gmp_extract_double()
286 rp[i] = manh >> (BITS_PER_ULONG - GMP_NUMB_BITS); in __gmp_extract_double()
287 manh = ((manh << GMP_NUMB_BITS) in __gmp_extract_double()
288 | (manl >> (BITS_PER_ULONG - GMP_NUMB_BITS))); in __gmp_extract_double()
289 manl = manl << GMP_NUMB_BITS; in __gmp_extract_double()
302 rp[i] = manh >> (BITS_PER_ULONG - GMP_NUMB_BITS); in __gmp_extract_double()
303 manh = ((manh << GMP_NUMB_BITS) in __gmp_extract_double()
304 | (manl >> (BITS_PER_ULONG - GMP_NUMB_BITS))); in __gmp_extract_double()
[all …]
/dports/math/mingw32-libgmp/gmp-6.0.0/
H A Dextract-dbl.c164 sc = (unsigned) (exp + 64 * GMP_NUMB_BITS) % GMP_NUMB_BITS; in __gmp_extract_double()
167 exp = (exp + 64 * GMP_NUMB_BITS) / GMP_NUMB_BITS - 64 * GMP_NUMB_BITS / GMP_NUMB_BITS + 1; in __gmp_extract_double()
272 rp[0] = ((manh << (GMP_NUMB_BITS - GMP_NAIL_BITS + sc)) in __gmp_extract_double()
286 rp[i] = manh >> (BITS_PER_ULONG - GMP_NUMB_BITS); in __gmp_extract_double()
287 manh = ((manh << GMP_NUMB_BITS) in __gmp_extract_double()
288 | (manl >> (BITS_PER_ULONG - GMP_NUMB_BITS))); in __gmp_extract_double()
289 manl = manl << GMP_NUMB_BITS; in __gmp_extract_double()
302 rp[i] = manh >> (BITS_PER_ULONG - GMP_NUMB_BITS); in __gmp_extract_double()
303 manh = ((manh << GMP_NUMB_BITS) in __gmp_extract_double()
304 | (manl >> (BITS_PER_ULONG - GMP_NUMB_BITS))); in __gmp_extract_double()
[all …]
/dports/math/kalker/gmp-mpfr-sys-21966f4bfb56c87d407eb14c72e92ef4e55856aa/gmp-6.2.1-c/
H A Dextract-dbl.c163 sc = (unsigned) (exp + 64 * GMP_NUMB_BITS) % GMP_NUMB_BITS; in __gmp_extract_double()
166 exp = (exp + 64 * GMP_NUMB_BITS) / GMP_NUMB_BITS - 64 * GMP_NUMB_BITS / GMP_NUMB_BITS + 1; in __gmp_extract_double()
271 rp[0] = ((manh << (GMP_NUMB_BITS - GMP_NAIL_BITS + sc)) in __gmp_extract_double()
285 rp[i] = manh >> (BITS_PER_ULONG - GMP_NUMB_BITS); in __gmp_extract_double()
286 manh = ((manh << GMP_NUMB_BITS) in __gmp_extract_double()
287 | (manl >> (BITS_PER_ULONG - GMP_NUMB_BITS))); in __gmp_extract_double()
288 manl = manl << GMP_NUMB_BITS; in __gmp_extract_double()
301 rp[i] = manh >> (BITS_PER_ULONG - GMP_NUMB_BITS); in __gmp_extract_double()
302 manh = ((manh << GMP_NUMB_BITS) in __gmp_extract_double()
303 | (manl >> (BITS_PER_ULONG - GMP_NUMB_BITS))); in __gmp_extract_double()
[all …]
/dports/math/mpir/mpir-3.0.0/mpz/
H A Drrandomb.c32 nl = (nbits + GMP_NUMB_BITS - 1) / GMP_NUMB_BITS; in mpz_rrandomb()
45 #if GMP_NUMB_BITS < 32
46 #define BITS_PER_RANDCALL GMP_NUMB_BITS
60 i = (nbits + GMP_NUMB_BITS - 1) / GMP_NUMB_BITS - 1; in gmp_rrandomb()
61 rp[i] = GMP_NUMB_MAX >> (GMP_NUMB_BITS - (nbits % GMP_NUMB_BITS)) % GMP_NUMB_BITS; in gmp_rrandomb()
80 rp[bi / GMP_NUMB_BITS] ^= CNST_LIMB (1) << bi % GMP_NUMB_BITS; in gmp_rrandomb()
86 mpn_incr_u (rp + bi / GMP_NUMB_BITS, CNST_LIMB (1) << bi % GMP_NUMB_BITS); in gmp_rrandomb()
/dports/math/gmp/gmp-6.2.1/mpn/generic/
H A Drootrem.c216 mp_bitcnt_t sizes[GMP_NUMB_BITS + 1]; in mpn_rootrem_internal()
244 if (ulz == GMP_NUMB_BITS) in mpn_rootrem_internal()
329 rn = un - kk / GMP_NUMB_BITS; in mpn_rootrem_internal()
330 MPN_RSHIFT (rp, up + kk / GMP_NUMB_BITS, rn, kk % GMP_NUMB_BITS); in mpn_rootrem_internal()
365 nl = 1 + (kk + b - 1) / GMP_NUMB_BITS - (kk / GMP_NUMB_BITS); in mpn_rootrem_internal()
404 MPN_RSHIFT (rp, up + kk / GMP_NUMB_BITS, nl, kk % GMP_NUMB_BITS); in mpn_rootrem_internal()
425 MPN_LSHIFT (cy, sp + b / GMP_NUMB_BITS, sp, sn, b % GMP_NUMB_BITS); in mpn_rootrem_internal()
426 sn = sn + b / GMP_NUMB_BITS; in mpn_rootrem_internal()
433 save = sp[b / GMP_NUMB_BITS]; in mpn_rootrem_internal()
466 sp[qn - 1] = GMP_NUMB_MAX >> (GMP_NUMB_BITS - 1 - ((b - 1) % GMP_NUMB_BITS)); in mpn_rootrem_internal()
[all …]
/dports/math/gap/gap-4.11.0/extern/gmp/mpn/generic/
H A Drootrem.c217 mp_bitcnt_t sizes[GMP_NUMB_BITS + 1]; in mpn_rootrem_internal()
245 if (ulz == GMP_NUMB_BITS) in mpn_rootrem_internal()
330 rn = un - kk / GMP_NUMB_BITS; in mpn_rootrem_internal()
331 MPN_RSHIFT (rp, up + kk / GMP_NUMB_BITS, rn, kk % GMP_NUMB_BITS); in mpn_rootrem_internal()
366 nl = 1 + (kk + b - 1) / GMP_NUMB_BITS - (kk / GMP_NUMB_BITS); in mpn_rootrem_internal()
405 MPN_RSHIFT (rp, up + kk / GMP_NUMB_BITS, nl, kk % GMP_NUMB_BITS); in mpn_rootrem_internal()
426 MPN_LSHIFT (cy, sp + b / GMP_NUMB_BITS, sp, sn, b % GMP_NUMB_BITS); in mpn_rootrem_internal()
427 sn = sn + b / GMP_NUMB_BITS; in mpn_rootrem_internal()
434 save = sp[b / GMP_NUMB_BITS]; in mpn_rootrem_internal()
467 sp[qn - 1] = GMP_NUMB_MAX >> (GMP_NUMB_BITS - 1 - ((b - 1) % GMP_NUMB_BITS)); in mpn_rootrem_internal()
[all …]
/dports/math/kalker/gmp-mpfr-sys-21966f4bfb56c87d407eb14c72e92ef4e55856aa/gmp-6.2.1-c/mpn/generic/
H A Drootrem.c216 mp_bitcnt_t sizes[GMP_NUMB_BITS + 1]; in mpn_rootrem_internal()
244 if (ulz == GMP_NUMB_BITS) in mpn_rootrem_internal()
329 rn = un - kk / GMP_NUMB_BITS; in mpn_rootrem_internal()
330 MPN_RSHIFT (rp, up + kk / GMP_NUMB_BITS, rn, kk % GMP_NUMB_BITS); in mpn_rootrem_internal()
365 nl = 1 + (kk + b - 1) / GMP_NUMB_BITS - (kk / GMP_NUMB_BITS); in mpn_rootrem_internal()
404 MPN_RSHIFT (rp, up + kk / GMP_NUMB_BITS, nl, kk % GMP_NUMB_BITS); in mpn_rootrem_internal()
425 MPN_LSHIFT (cy, sp + b / GMP_NUMB_BITS, sp, sn, b % GMP_NUMB_BITS); in mpn_rootrem_internal()
426 sn = sn + b / GMP_NUMB_BITS; in mpn_rootrem_internal()
433 save = sp[b / GMP_NUMB_BITS]; in mpn_rootrem_internal()
466 sp[qn - 1] = GMP_NUMB_MAX >> (GMP_NUMB_BITS - 1 - ((b - 1) % GMP_NUMB_BITS)); in mpn_rootrem_internal()
[all …]

12345678910>>...63