/dports/math/mpir/mpir-3.0.0/tests/mpz/ |
H A D | t-scan.c | 32 unsigned long z_bits = (unsigned long) ABSIZ(z) * GMP_NUMB_BITS; in refmpz_scan() 77 mpz_urandomb (z, rands, (unsigned long) (ABS (size) * GMP_NUMB_BITS)); in check_ref() 90 if ((int) isize*GMP_NUMB_BITS < -o) in check_ref() 93 start = isize*GMP_NUMB_BITS + o; in check_ref()
|
/dports/math/kalker/gmp-mpfr-sys-21966f4bfb56c87d407eb14c72e92ef4e55856aa/mpfr-4.1.0-p13-c/src/ |
H A D | isinteger.c | 47 xn = (mp_size_t) ((prec - 1) / GMP_NUMB_BITS); /* index of last limb */ in mpfr_integer_p() 48 xn -= (mp_size_t) (expo / GMP_NUMB_BITS); in mpfr_integer_p() 53 if (MPFR_LIMB_LSHIFT(xp[xn], expo % GMP_NUMB_BITS) != 0) in mpfr_integer_p()
|
H A D | check.c | 57 prec > (mpfr_prec_t) s * GMP_NUMB_BITS) in mpfr_check() 72 rw = prec % GMP_NUMB_BITS; in mpfr_check() 75 tmp = MPFR_LIMB_MASK (GMP_NUMB_BITS - rw); in mpfr_check()
|
/dports/math/gmp/gmp-6.2.1/tests/mpf/ |
H A D | t-get_si.c | 159 #if GMP_NUMB_BITS >= BITS_PER_ULONG in check_limbdata() 168 { 2, 1, { 1 }, 1L << GMP_NUMB_BITS }, /* 1_. */ in check_limbdata() 171 { 2, 2, { 99, 1 }, 99L + (1L << GMP_NUMB_BITS) }, /* 19. */ in check_limbdata() 172 { 3, 2, { 1, 99 }, 1L << GMP_NUMB_BITS }, /* 91_. */ in check_limbdata() 173 { 3, 3, { 0, 1, 99 }, 1L << GMP_NUMB_BITS }, /* 910. */ in check_limbdata()
|
/dports/math/gap/gap-4.11.0/extern/gmp/tests/mpf/ |
H A D | t-get_si.c | 160 #if GMP_NUMB_BITS >= BITS_PER_ULONG in check_limbdata() 169 { 2, 1, { 1 }, 1L << GMP_NUMB_BITS }, /* 1_. */ in check_limbdata() 172 { 2, 2, { 99, 1 }, 99L + (1L << GMP_NUMB_BITS) }, /* 19. */ in check_limbdata() 173 { 3, 2, { 1, 99 }, 1L << GMP_NUMB_BITS }, /* 91_. */ in check_limbdata() 174 { 3, 3, { 0, 1, 99 }, 1L << GMP_NUMB_BITS }, /* 910. */ in check_limbdata()
|
/dports/math/mingw32-libgmp/gmp-6.0.0/tests/mpf/ |
H A D | t-get_si.c | 160 #if GMP_NUMB_BITS >= BITS_PER_ULONG in check_limbdata() 169 { 2, 1, { 1 }, 1L << GMP_NUMB_BITS }, /* 1_. */ in check_limbdata() 172 { 2, 2, { 99, 1 }, 99L + (1L << GMP_NUMB_BITS) }, /* 19. */ in check_limbdata() 173 { 3, 2, { 1, 99 }, 1L << GMP_NUMB_BITS }, /* 91_. */ in check_limbdata() 174 { 3, 3, { 0, 1, 99 }, 1L << GMP_NUMB_BITS }, /* 910. */ in check_limbdata()
|
/dports/math/mpir/mpir-3.0.0/tests/mpf/ |
H A D | t-get_si.c | 162 #if GMP_NUMB_BITS >= BITS_PER_UI in check_limbdata() 171 { 2, 1, { 1 }, 1 << GMP_NUMB_BITS }, /* 1_. */ in check_limbdata() 174 { 2, 2, { 99, 1 }, 99 + (1 << GMP_NUMB_BITS) }, /* 19. */ in check_limbdata() 175 { 3, 2, { 1, 99 }, 1 << GMP_NUMB_BITS }, /* 91_. */ in check_limbdata() 176 { 3, 3, { 0, 1, 99 }, 1 << GMP_NUMB_BITS }, /* 910. */ in check_limbdata()
|
/dports/math/mpir/mpir-3.0.0/mpn/generic/ |
H A D | get_d.c | 107 if (UNLIKELY ((mpir_ui) (GMP_NUMB_BITS * size) in mpn_get_d() 117 exp += GMP_NUMB_BITS * size; in mpn_get_d() 120 #define ONE_LIMB (GMP_LIMB_BITS == 64 && 2*GMP_NUMB_BITS >= 53) in mpn_get_d() 121 #define TWO_LIMBS (GMP_LIMB_BITS == 32 && 3*GMP_NUMB_BITS >= 53) in mpn_get_d() 153 m1 = (m1 << GMP_NAIL_BITS) | (m2 >> (GMP_NUMB_BITS-GMP_NAIL_BITS)); in mpn_get_d()
|
/dports/math/kalker/gmp-mpfr-sys-21966f4bfb56c87d407eb14c72e92ef4e55856aa/gmp-6.2.1-c/tests/mpf/ |
H A D | t-get_si.c | 159 #if GMP_NUMB_BITS >= BITS_PER_ULONG in check_limbdata() 168 { 2, 1, { 1 }, 1L << GMP_NUMB_BITS }, /* 1_. */ in check_limbdata() 171 { 2, 2, { 99, 1 }, 99L + (1L << GMP_NUMB_BITS) }, /* 19. */ in check_limbdata() 172 { 3, 2, { 1, 99 }, 1L << GMP_NUMB_BITS }, /* 91_. */ in check_limbdata() 173 { 3, 3, { 0, 1, 99 }, 1L << GMP_NUMB_BITS }, /* 910. */ in check_limbdata()
|
/dports/math/mpir/mpir-3.0.0/mpz/ |
H A D | set_sx.c | 32 #define NLIMBS ((8 * SIZEOF_UINTMAX_T + GMP_NUMB_BITS - 1) / GMP_NUMB_BITS) 47 uv >>= GMP_NUMB_BITS; in mpz_set_sx()
|
H A D | iset_ux.c | 32 #define NLIMBS ((8 * SIZEOF_UINTMAX_T + GMP_NUMB_BITS - 1) / GMP_NUMB_BITS) 48 uv >>= GMP_NUMB_BITS; in mpz_init_set_ux()
|
H A D | divegcd.c | 47 #if GMP_NUMB_BITS % 2 == 0 64 #if GMP_NUMB_BITS % 4 == 0 126 #if GMP_NUMB_BITS % 2 == 0 in mpz_divexact_gcd() 133 #if GMP_NUMB_BITS % 4 == 0 in mpz_divexact_gcd()
|
H A D | iset_sx.c | 32 #define NLIMBS ((8 * SIZEOF_UINTMAX_T + GMP_NUMB_BITS - 1) / GMP_NUMB_BITS) 48 uv >>= GMP_NUMB_BITS; in mpz_init_set_sx()
|
/dports/math/gmp/gmp-6.2.1/mpz/ |
H A D | divegcd.c | 57 #if GMP_NUMB_BITS % 2 == 0 74 #if GMP_NUMB_BITS % 4 == 0 136 #if GMP_NUMB_BITS % 2 == 0 in mpz_divexact_gcd() 143 #if GMP_NUMB_BITS % 4 == 0 in mpz_divexact_gcd()
|
/dports/math/gap/gap-4.11.0/extern/gmp/mpz/ |
H A D | divegcd.c | 58 #if GMP_NUMB_BITS % 2 == 0 75 #if GMP_NUMB_BITS % 4 == 0 137 #if GMP_NUMB_BITS % 2 == 0 in mpz_divexact_gcd() 144 #if GMP_NUMB_BITS % 4 == 0 in mpz_divexact_gcd()
|
/dports/math/mingw32-libgmp/gmp-6.0.0/mpz/ |
H A D | divegcd.c | 58 #if GMP_NUMB_BITS % 2 == 0 75 #if GMP_NUMB_BITS % 4 == 0 137 #if GMP_NUMB_BITS % 2 == 0 in mpz_divexact_gcd() 144 #if GMP_NUMB_BITS % 4 == 0 in mpz_divexact_gcd()
|
/dports/math/kalker/gmp-mpfr-sys-21966f4bfb56c87d407eb14c72e92ef4e55856aa/gmp-6.2.1-c/mpz/ |
H A D | divegcd.c | 57 #if GMP_NUMB_BITS % 2 == 0 74 #if GMP_NUMB_BITS % 4 == 0 136 #if GMP_NUMB_BITS % 2 == 0 in mpz_divexact_gcd() 143 #if GMP_NUMB_BITS % 4 == 0 in mpz_divexact_gcd()
|
/dports/security/nettle/nettle-3.7.3/ |
H A D | ecc-mul-a-eh.c | 72 for (bit = (mp_limb_t) 1 << (GMP_NUMB_BITS - 1); in ecc_mul_a_eh() 130 mp_size_t limb_index = bit_index / GMP_NUMB_BITS; in ecc_mul_a_eh() 131 unsigned shift = bit_index % GMP_NUMB_BITS; in ecc_mul_a_eh() 139 bits |= np[limb_index + 1] << (GMP_NUMB_BITS - shift); in ecc_mul_a_eh() 162 shift = shift + GMP_NUMB_BITS - ECC_MUL_A_EH_WBITS; in ecc_mul_a_eh()
|
H A D | ecc-mul-a.c | 73 for (bit = (mp_limb_t) 1 << (GMP_NUMB_BITS - 1); in ecc_mul_a() 134 mp_size_t limb_index = bit_index / GMP_NUMB_BITS; in ecc_mul_a() 135 unsigned shift = bit_index % GMP_NUMB_BITS; in ecc_mul_a() 143 bits |= np[limb_index + 1] << (GMP_NUMB_BITS - shift); in ecc_mul_a() 167 shift = shift + GMP_NUMB_BITS - ECC_MUL_A_WBITS; in ecc_mul_a()
|
/dports/security/gnutls/gnutls-3.6.16/lib/nettle/ecc/ |
H A D | ecc-mul-a-eh.c | 72 for (bit = (mp_limb_t) 1 << (GMP_NUMB_BITS - 1); in ecc_mul_a_eh() 130 mp_size_t limb_index = bit_index / GMP_NUMB_BITS; in ecc_mul_a_eh() 131 unsigned shift = bit_index % GMP_NUMB_BITS; in ecc_mul_a_eh() 139 bits |= np[limb_index + 1] << (GMP_NUMB_BITS - shift); in ecc_mul_a_eh() 162 shift = shift + GMP_NUMB_BITS - ECC_MUL_A_EH_WBITS; in ecc_mul_a_eh()
|
H A D | gmp-glue.c | 126 if (bits >= GMP_NUMB_BITS) in mpn_set_base256() 131 bits -= GMP_NUMB_BITS; in mpn_set_base256() 155 if (bits >= GMP_NUMB_BITS) in mpn_set_base256_le() 160 bits -= GMP_NUMB_BITS; in mpn_set_base256_le() 193 bits += GMP_NUMB_BITS - 8; in mpn_get_base256() 226 bits += GMP_NUMB_BITS - 8; in mpn_get_base256_le()
|
/dports/security/sequoia/sequoia-383133f6be990237044900a4df676488bf8dd71e/cargo-crates/nettle-src-3.5.1-2/nettle/ |
H A D | ecc-mul-a-eh.c | 72 for (bit = (mp_limb_t) 1 << (GMP_NUMB_BITS - 1); in ecc_mul_a_eh() 130 mp_size_t limb_index = bit_index / GMP_NUMB_BITS; in ecc_mul_a_eh() 131 unsigned shift = bit_index % GMP_NUMB_BITS; in ecc_mul_a_eh() 139 bits |= np[limb_index + 1] << (GMP_NUMB_BITS - shift); in ecc_mul_a_eh() 162 shift = shift + GMP_NUMB_BITS - ECC_MUL_A_EH_WBITS; in ecc_mul_a_eh()
|
H A D | eddsa-expand.c | 68 k2[(ecc->p.bit_size - 1) / GMP_NUMB_BITS] in _eddsa_expand_key() 69 |= (mp_limb_t) 1 << ((ecc->p.bit_size - 1) % GMP_NUMB_BITS); in _eddsa_expand_key() 72 >> (GMP_NUMB_BITS * ecc->p.size - ecc->p.bit_size); in _eddsa_expand_key()
|
/dports/math/zn_poly/zn_poly-0.9.2/src/ |
H A D | mulmid_ks.c | 101 size_t k2 = CEIL_DIV (n2 * b, GMP_NUMB_BITS); in zn_array_mulmid_KS1() 105 unsigned p = GMP_NUMB_BITS * (k2 + 1) - (n2 - 1) * b; in zn_array_mulmid_KS1() 108 size_t k1 = CEIL_DIV (p + n1 * b, GMP_NUMB_BITS); in zn_array_mulmid_KS1() 174 size_t k2 = CEIL_DIV ((n2 + 1) * b, GMP_NUMB_BITS); in zn_array_mulmid_KS2() 179 unsigned p = GMP_NUMB_BITS * (k2 + 1) - (n2 - 2) * b - 1; in zn_array_mulmid_KS2() 385 #if GMP_NAIL_BITS == 0 && ULONG_BITS == GMP_NUMB_BITS in subtract_ulongs() 386 size_t k = i / GMP_NUMB_BITS; in subtract_ulongs() 391 unsigned j = i % GMP_NUMB_BITS; in subtract_ulongs() 454 size_t k2 = CEIL_DIV (n2 * b, GMP_NUMB_BITS); in zn_array_mulmid_KS3() 457 unsigned p = GMP_NUMB_BITS * (k2 + 1) - (n2 - 1) * b; in zn_array_mulmid_KS3() [all …]
|
/dports/math/kalker/gmp-mpfr-sys-21966f4bfb56c87d407eb14c72e92ef4e55856aa/mpfr-4.1.0-p13-c/tests/ |
H A D | tset_f.c | 48 mpf_urandomb (y, RANDS, 10 * GMP_NUMB_BITS); in main() 95 mpfr_set_prec (u, ((pr / GMP_NUMB_BITS + 1) * GMP_NUMB_BITS)); in main() 103 ((pr / GMP_NUMB_BITS + 1) * GMP_NUMB_BITS)); in main()
|