mp_limb_t 60 lib/mini-gmp.c #define GMP_LIMB_BITS (sizeof(mp_limb_t) * CHAR_BIT) mp_limb_t 62 lib/mini-gmp.c #define GMP_LIMB_MAX ((mp_limb_t) ~ (mp_limb_t) 0) mp_limb_t 63 lib/mini-gmp.c #define GMP_LIMB_HIGHBIT ((mp_limb_t) 1 << (GMP_LIMB_BITS - 1)) mp_limb_t 65 lib/mini-gmp.c #define GMP_HLIMB_BIT ((mp_limb_t) 1 << (GMP_LIMB_BITS / 2)) mp_limb_t 92 lib/mini-gmp.c mp_limb_t __cy = (x); \ mp_limb_t 98 lib/mini-gmp.c mp_limb_t __clz_x = (x); \ mp_limb_t 103 lib/mini-gmp.c (__clz_x & ((mp_limb_t) 0xff << (GMP_LIMB_BITS - 8))) == 0; \ mp_limb_t 112 lib/mini-gmp.c mp_limb_t __ctz_x = (x); \ mp_limb_t 120 lib/mini-gmp.c mp_limb_t __x; \ mp_limb_t 128 lib/mini-gmp.c mp_limb_t __x; \ mp_limb_t 140 lib/mini-gmp.c w0 = (mp_limb_t) __ww; \ mp_limb_t 141 lib/mini-gmp.c w1 = (mp_limb_t) (__ww >> LOCAL_GMP_LIMB_BITS); \ mp_limb_t 146 lib/mini-gmp.c w0 = (mp_limb_t) __ww; \ mp_limb_t 147 lib/mini-gmp.c w1 = (mp_limb_t) (__ww >> LOCAL_GMP_LIMB_BITS); \ mp_limb_t 150 lib/mini-gmp.c mp_limb_t __x0, __x1, __x2, __x3; \ mp_limb_t 152 lib/mini-gmp.c mp_limb_t __u = (u), __v = (v); \ mp_limb_t 153 lib/mini-gmp.c assert (sizeof (unsigned) * 2 >= sizeof (mp_limb_t)); \ mp_limb_t 160 lib/mini-gmp.c __x0 = (mp_limb_t) __ul * __vl; \ mp_limb_t 161 lib/mini-gmp.c __x1 = (mp_limb_t) __ul * __vh; \ mp_limb_t 162 lib/mini-gmp.c __x2 = (mp_limb_t) __uh * __vl; \ mp_limb_t 163 lib/mini-gmp.c __x3 = (mp_limb_t) __uh * __vh; \ mp_limb_t 180 lib/mini-gmp.c ((sizeof(mp_limb_t) >= sizeof(int)) ? (u)*(v) : (unsigned int)(u) * (v)) mp_limb_t 184 lib/mini-gmp.c mp_limb_t _qh, _ql, _r, _mask; \ mp_limb_t 188 lib/mini-gmp.c _mask = -(mp_limb_t) (_r > _ql); /* both > and >= are OK */ \ mp_limb_t 203 lib/mini-gmp.c mp_limb_t _q0, _t1, _t0, _mask; \ mp_limb_t 215 lib/mini-gmp.c _mask = - (mp_limb_t) ((r1) >= _q0); \ mp_limb_t 231 lib/mini-gmp.c mp_limb_t __mp_limb_t_swap__tmp = (x); \ mp_limb_t 371 lib/mini-gmp.c return (mp_ptr) gmp_alloc (size * sizeof (mp_limb_t)); mp_limb_t 378 lib/mini-gmp.c return (mp_ptr) gmp_realloc (old, old_size * sizeof (mp_limb_t), size * sizeof (mp_limb_t)); mp_limb_t 384 lib/mini-gmp.c gmp_free (old, size * sizeof (mp_limb_t)); mp_limb_t 446 lib/mini-gmp.c mp_limb_t mp_limb_t 447 lib/mini-gmp.c mpn_add_1 (mp_ptr rp, mp_srcptr ap, mp_size_t n, mp_limb_t b) mp_limb_t 455 lib/mini-gmp.c mp_limb_t r = ap[i] + b; mp_limb_t 465 lib/mini-gmp.c mp_limb_t mp_limb_t 469 lib/mini-gmp.c mp_limb_t cy; mp_limb_t 473 lib/mini-gmp.c mp_limb_t a, b, r; mp_limb_t 484 lib/mini-gmp.c mp_limb_t mp_limb_t 487 lib/mini-gmp.c mp_limb_t cy; mp_limb_t 497 lib/mini-gmp.c mp_limb_t mp_limb_t 498 lib/mini-gmp.c mpn_sub_1 (mp_ptr rp, mp_srcptr ap, mp_size_t n, mp_limb_t b) mp_limb_t 507 lib/mini-gmp.c mp_limb_t a = ap[i]; mp_limb_t 509 lib/mini-gmp.c mp_limb_t cy = a < b; mp_limb_t 518 lib/mini-gmp.c mp_limb_t mp_limb_t 522 lib/mini-gmp.c mp_limb_t cy; mp_limb_t 526 lib/mini-gmp.c mp_limb_t a, b; mp_limb_t 536 lib/mini-gmp.c mp_limb_t mp_limb_t 539 lib/mini-gmp.c mp_limb_t cy; mp_limb_t 549 lib/mini-gmp.c mp_limb_t mp_limb_t 550 lib/mini-gmp.c mpn_mul_1 (mp_ptr rp, mp_srcptr up, mp_size_t n, mp_limb_t vl) mp_limb_t 552 lib/mini-gmp.c mp_limb_t ul, cl, hpl, lpl; mp_limb_t 572 lib/mini-gmp.c mp_limb_t mp_limb_t 573 lib/mini-gmp.c mpn_addmul_1 (mp_ptr rp, mp_srcptr up, mp_size_t n, mp_limb_t vl) mp_limb_t 575 lib/mini-gmp.c mp_limb_t ul, cl, hpl, lpl, rl; mp_limb_t 598 lib/mini-gmp.c mp_limb_t mp_limb_t 599 lib/mini-gmp.c mpn_submul_1 (mp_ptr rp, mp_srcptr up, mp_size_t n, mp_limb_t vl) mp_limb_t 601 lib/mini-gmp.c mp_limb_t ul, cl, hpl, lpl, rl; mp_limb_t 624 lib/mini-gmp.c mp_limb_t mp_limb_t 661 lib/mini-gmp.c mp_limb_t mp_limb_t 664 lib/mini-gmp.c mp_limb_t high_limb, low_limb; mp_limb_t 666 lib/mini-gmp.c mp_limb_t retval; mp_limb_t 691 lib/mini-gmp.c mp_limb_t mp_limb_t 694 lib/mini-gmp.c mp_limb_t high_limb, low_limb; mp_limb_t 696 lib/mini-gmp.c mp_limb_t retval; mp_limb_t 719 lib/mini-gmp.c mpn_common_scan (mp_limb_t limb, mp_size_t i, mp_srcptr up, mp_size_t un, mp_limb_t 720 lib/mini-gmp.c mp_limb_t ux) mp_limb_t 765 lib/mini-gmp.c mp_limb_t mp_limb_t 787 lib/mini-gmp.c mp_limb_t mp_limb_t 788 lib/mini-gmp.c mpn_invert_3by2 (mp_limb_t u1, mp_limb_t u0) mp_limb_t 790 lib/mini-gmp.c mp_limb_t r, m; mp_limb_t 793 lib/mini-gmp.c mp_limb_t p, ql; mp_limb_t 796 lib/mini-gmp.c assert (sizeof (unsigned) * 2 >= sizeof (mp_limb_t)); mp_limb_t 822 lib/mini-gmp.c r = ((~u1 - (mp_limb_t) qh * uh) << (GMP_LIMB_BITS / 2)) | GMP_LLIMB_MASK; mp_limb_t 824 lib/mini-gmp.c p = (mp_limb_t) qh * ul; mp_limb_t 859 lib/mini-gmp.c m = ((mp_limb_t) qh << (GMP_LIMB_BITS / 2)) + ql; mp_limb_t 871 lib/mini-gmp.c mp_limb_t th, tl; mp_limb_t 901 lib/mini-gmp.c mp_limb_t d1, d0; mp_limb_t 903 lib/mini-gmp.c mp_limb_t di; mp_limb_t 907 lib/mini-gmp.c mpn_div_qr_1_invert (struct gmp_div_inverse *inv, mp_limb_t d) mp_limb_t 920 lib/mini-gmp.c mp_limb_t d1, mp_limb_t d0) mp_limb_t 950 lib/mini-gmp.c mp_limb_t d1, d0; mp_limb_t 970 lib/mini-gmp.c static mp_limb_t mp_limb_t 974 lib/mini-gmp.c mp_limb_t d, di; mp_limb_t 975 lib/mini-gmp.c mp_limb_t r; mp_limb_t 998 lib/mini-gmp.c mp_limb_t q; mp_limb_t 1016 lib/mini-gmp.c mp_limb_t d1, d0, di, r1, r0; mp_limb_t 1034 lib/mini-gmp.c mp_limb_t n0, q; mp_limb_t 1056 lib/mini-gmp.c mp_ptr np, mp_size_t nn, mp_limb_t n1, mp_limb_t 1058 lib/mini-gmp.c mp_limb_t dinv) mp_limb_t 1062 lib/mini-gmp.c mp_limb_t d1, d0; mp_limb_t 1063 lib/mini-gmp.c mp_limb_t cy, cy1; mp_limb_t 1064 lib/mini-gmp.c mp_limb_t q; mp_limb_t 1082 lib/mini-gmp.c mp_limb_t n0 = np[dn-1+i]; mp_limb_t 1131 lib/mini-gmp.c mp_limb_t nh; mp_limb_t 1196 lib/mini-gmp.c mp_limb_t bb; mp_limb_t 1200 lib/mini-gmp.c mpn_get_base_info (struct mpn_base_info *info, mp_limb_t b) mp_limb_t 1202 lib/mini-gmp.c mp_limb_t m; mp_limb_t 1203 lib/mini-gmp.c mp_limb_t p; mp_limb_t 1215 lib/mini-gmp.c mpn_limb_size_in_base_2 (mp_limb_t u) mp_limb_t 1256 lib/mini-gmp.c mpn_limb_get_str (unsigned char *sp, mp_limb_t w, mp_limb_t 1262 lib/mini-gmp.c mp_limb_t h, l, r; mp_limb_t 1296 lib/mini-gmp.c mp_limb_t w; mp_limb_t 1345 lib/mini-gmp.c mp_limb_t limb; mp_limb_t 1350 lib/mini-gmp.c limb |= (mp_limb_t) sp[sn] << shift; mp_limb_t 1372 lib/mini-gmp.c mp_limb_t b, const struct mpn_base_info *info) mp_limb_t 1375 lib/mini-gmp.c mp_limb_t w; mp_limb_t 1392 lib/mini-gmp.c mp_limb_t cy; mp_limb_t 1433 lib/mini-gmp.c static const mp_limb_t dummy_limb = GMP_LIMB_MAX & 0xc1a0; mp_limb_t 1572 lib/mini-gmp.c mp_limb_t ulongrem = 0; mp_limb_t 1575 lib/mini-gmp.c ulongrem = (mp_limb_t) (ULONG_MAX >> GMP_LIMB_BITS * ulongsize) + 1; mp_limb_t 1648 lib/mini-gmp.c mp_limb_t mp_limb_t 1717 lib/mini-gmp.c mp_limb_t f; mp_limb_t 1743 lib/mini-gmp.c f = (mp_limb_t) x; mp_limb_t 1751 lib/mini-gmp.c f = (mp_limb_t) x; mp_limb_t 1771 lib/mini-gmp.c mp_limb_t l; mp_limb_t 1832 lib/mini-gmp.c mp_limb_t f, xl; mp_limb_t 1834 lib/mini-gmp.c f = (mp_limb_t) d; mp_limb_t 1986 lib/mini-gmp.c mp_limb_t cy; mp_limb_t 2137 lib/mini-gmp.c mp_limb_t cy = mpn_lshift (rp + limbs, u->_mp_d, un, shift); mp_limb_t 2391 lib/mini-gmp.c & (((mp_limb_t) 1 << bit_index) - 1))); mp_limb_t 2426 lib/mini-gmp.c mp_limb_t mask; mp_limb_t 2666 lib/mini-gmp.c static mp_limb_t mp_limb_t 2667 lib/mini-gmp.c mpn_gcd_11 (mp_limb_t u, mp_limb_t v) mp_limb_t 2790 lib/mini-gmp.c mp_limb_t *gp; mp_limb_t 3162 lib/mini-gmp.c mp_limb_t w = e->_mp_d[en]; mp_limb_t 3163 lib/mini-gmp.c mp_limb_t bit; mp_limb_t 3387 lib/mini-gmp.c gmp_jacobi_coprime (mp_limb_t a, mp_limb_t b) mp_limb_t 3505 lib/mini-gmp.c mp_limb_t maxD, D; /* The absolute value is stored. */ mp_limb_t 3507 lib/mini-gmp.c mp_limb_t tl; mp_limb_t 3681 lib/mini-gmp.c mp_limb_t w; mp_limb_t 3698 lib/mini-gmp.c if (shift > 0 && (mp_limb_t) (w << (GMP_LIMB_BITS - shift)) > 0) mp_limb_t 3711 lib/mini-gmp.c mp_limb_t bit; mp_limb_t 3717 lib/mini-gmp.c bit = (mp_limb_t) 1 << (bit_index % GMP_LIMB_BITS); mp_limb_t 3733 lib/mini-gmp.c mp_limb_t cy; mp_limb_t 3753 lib/mini-gmp.c mp_limb_t bit; mp_limb_t 3759 lib/mini-gmp.c bit = (mp_limb_t) 1 << (bit_index % GMP_LIMB_BITS); mp_limb_t 3815 lib/mini-gmp.c mp_limb_t ux, vx, rx; mp_limb_t 3816 lib/mini-gmp.c mp_limb_t uc, vc, rc; mp_limb_t 3817 lib/mini-gmp.c mp_limb_t ul, vl, rl; mp_limb_t 3887 lib/mini-gmp.c mp_limb_t ux, vx, rx; mp_limb_t 3888 lib/mini-gmp.c mp_limb_t uc, vc, rc; mp_limb_t 3889 lib/mini-gmp.c mp_limb_t ul, vl, rl; mp_limb_t 3960 lib/mini-gmp.c mp_limb_t ux, vx, rx; mp_limb_t 3961 lib/mini-gmp.c mp_limb_t uc, vc, rc; mp_limb_t 3962 lib/mini-gmp.c mp_limb_t ul, vl, rl; mp_limb_t 4024 lib/mini-gmp.c gmp_popcount_limb (mp_limb_t x) mp_limb_t 4074 lib/mini-gmp.c mp_limb_t uc, vc, ul, vl, comp; mp_limb_t 4126 lib/mini-gmp.c mp_limb_t limb, ux; mp_limb_t 4147 lib/mini-gmp.c ux = - (mp_limb_t) (limb >= ux); mp_limb_t 4162 lib/mini-gmp.c mp_limb_t limb, ux; mp_limb_t 4165 lib/mini-gmp.c ux = - (mp_limb_t) (us >= 0); mp_limb_t 4466 lib/mini-gmp.c mp_limb_t limb; mp_limb_t 4498 lib/mini-gmp.c rn = (size * count + sizeof(mp_limb_t) - 1) / sizeof(mp_limb_t); mp_limb_t 4506 lib/mini-gmp.c limb |= (mp_limb_t) *p << (bytes++ * CHAR_BIT); mp_limb_t 4507 lib/mini-gmp.c if (bytes == sizeof(mp_limb_t)) mp_limb_t 4546 lib/mini-gmp.c mp_limb_t limb; mp_limb_t 4568 lib/mini-gmp.c count = (k + (un-1) * sizeof (mp_limb_t) + size - 1) / size; mp_limb_t 4597 lib/mini-gmp.c if (sizeof (mp_limb_t) == 1) mp_limb_t 4611 lib/mini-gmp.c bytes = sizeof (mp_limb_t); mp_limb_t 64 lib/mini-gmp.h typedef mp_limb_t *mp_ptr; mp_limb_t 65 lib/mini-gmp.h typedef const mp_limb_t *mp_srcptr; mp_limb_t 74 lib/mini-gmp.h mp_limb_t *_mp_d; /* Pointer to the limbs. */ mp_limb_t 91 lib/mini-gmp.h mp_limb_t mpn_add_1 (mp_ptr, mp_srcptr, mp_size_t, mp_limb_t); mp_limb_t 92 lib/mini-gmp.h mp_limb_t mpn_add_n (mp_ptr, mp_srcptr, mp_srcptr, mp_size_t); mp_limb_t 93 lib/mini-gmp.h mp_limb_t mpn_add (mp_ptr, mp_srcptr, mp_size_t, mp_srcptr, mp_size_t); mp_limb_t 95 lib/mini-gmp.h mp_limb_t mpn_sub_1 (mp_ptr, mp_srcptr, mp_size_t, mp_limb_t); mp_limb_t 96 lib/mini-gmp.h mp_limb_t mpn_sub_n (mp_ptr, mp_srcptr, mp_srcptr, mp_size_t); mp_limb_t 97 lib/mini-gmp.h mp_limb_t mpn_sub (mp_ptr, mp_srcptr, mp_size_t, mp_srcptr, mp_size_t); mp_limb_t 99 lib/mini-gmp.h mp_limb_t mpn_mul_1 (mp_ptr, mp_srcptr, mp_size_t, mp_limb_t); mp_limb_t 100 lib/mini-gmp.h mp_limb_t mpn_addmul_1 (mp_ptr, mp_srcptr, mp_size_t, mp_limb_t); mp_limb_t 101 lib/mini-gmp.h mp_limb_t mpn_submul_1 (mp_ptr, mp_srcptr, mp_size_t, mp_limb_t); mp_limb_t 103 lib/mini-gmp.h mp_limb_t mpn_mul (mp_ptr, mp_srcptr, mp_size_t, mp_srcptr, mp_size_t); mp_limb_t 109 lib/mini-gmp.h mp_limb_t mpn_lshift (mp_ptr, mp_srcptr, mp_size_t, unsigned int); mp_limb_t 110 lib/mini-gmp.h mp_limb_t mpn_rshift (mp_ptr, mp_srcptr, mp_size_t, unsigned int); mp_limb_t 116 lib/mini-gmp.h mp_limb_t mpn_neg (mp_ptr, mp_srcptr, mp_size_t); mp_limb_t 120 lib/mini-gmp.h mp_limb_t mpn_invert_3by2 (mp_limb_t, mp_limb_t); mp_limb_t 255 lib/mini-gmp.h mp_limb_t mpz_getlimbn (const mpz_t, mp_size_t); mp_limb_t 5809 src/alloc.c size_t nbytes = nlimbs * sizeof (mp_limb_t); mp_limb_t 5810 src/alloc.c mp_limb_t *pure_limbs; mp_limb_t 5816 src/alloc.c int limb_alignment = alignof (mp_limb_t); mp_limb_t 178 src/bignum.c mp_limb_t *limb = mpz_limbs_write (result, maxlimbs); mp_limb_t 201 src/bignum.c mp_limb_t *limb = mpz_limbs_write (result, maxlimbs); mp_limb_t 304 src/bignum.c min (PTRDIFF_MAX, SIZE_MAX) / sizeof (mp_limb_t)), mp_limb_t 482 src/bignum.c static mp_limb_t mp_limb_t 493 src/bignum.c mp_limb_t r = 0; mp_limb_t 502 src/bignum.c static mp_limb_t mp_limb_t 503 src/bignum.c get_random_limb_lim (mp_limb_t lim) mp_limb_t 508 src/bignum.c mp_limb_t difflim = - lim, diff, remainder; mp_limb_t 511 src/bignum.c mp_limb_t r = get_random_limb (); mp_limb_t 531 src/bignum.c mp_limb_t *r_limb = mpz_limbs_write (mpz[0], nlimbs); mp_limb_t 532 src/bignum.c mp_limb_t const *lim_limb = mpz_limbs_read (*lim); mp_limb_t 533 src/bignum.c mp_limb_t limhi = lim_limb[nlimbs - 1]; mp_limb_t 547 src/bignum.c mp_limb_t rhi = get_random_limb_lim (limhi + (1 < nlimbs)); mp_limb_t 557 src/bignum.c mp_limb_t ri = get_random_limb (); mp_limb_t 30 src/bignum.h enum { GMP_NUMB_BITS = TYPE_WIDTH (mp_limb_t) }; mp_limb_t 3452 src/pdumper.c dump_align_output (ctx, alignof (mp_limb_t)); mp_limb_t 3460 src/pdumper.c mp_limb_t limb = mpz_getlimbn (*n, i); mp_limb_t 5461 src/pdumper.c const mp_limb_t *limbs =