Home
last modified time | relevance | path

Searched refs:mpz_tstbit (Results 1 – 25 of 59) sorted by relevance

123

/netbsd/external/lgpl3/gmp/dist/tests/mpz/
H A Dt-bit.c196 got = mpz_tstbit (z, i); in check_tstbit()
236 if (mpz_tstbit (x, bit) != 0) in check_single()
244 if (mpz_tstbit (x, bit) != 1) in check_single()
252 if (mpz_tstbit (x, bit) != 0) in check_single()
260 if (mpz_tstbit (x, bit) != 1) in check_single()
268 if (mpz_tstbit (x, bit) != 0) in check_single()
309 bit0 = mpz_tstbit (x, bitindex); in check_random()
314 bit1 = mpz_tstbit (x, bitindex); in check_random()
319 bit2 = mpz_tstbit (x, bitindex); in check_random()
324 bit3 = mpz_tstbit (x, bitindex); in check_random()
H A Dt-scan.c33 if (mpz_tstbit (z, i) == sought) in refmpz_scan()
H A Dt-powm.c146 if (mpz_tstbit (exp2, 0)) in main()
/netbsd/external/lgpl3/gmp/dist/mini-gmp/tests/
H A Dt-bitops.c54 if (!mpz_tstbit (res, b)) in testmain()
73 if (mpz_tstbit (res, b)) in testmain()
93 if (mpz_tstbit (res, b) != mpz_tstbit (a, b)) in testmain()
H A Dt-cong.c178 if (mpz_tstbit (bs, 0)) in check_random()
180 if (mpz_tstbit (bs, 1)) in check_random()
182 if (mpz_tstbit (bs, 2)) in check_random()
/netbsd/external/lgpl3/mpfr/dist/src/
H A Dgrandom.c132 s1 = mpz_tstbit (x, 0); in mpfr_grandom()
133 s2 = mpz_tstbit (x, 1); in mpfr_grandom()
H A Dpow_z.c87 if (mpz_tstbit (absz, i - 2)) in mpfr_pow_pos_z()
92 if (mpz_tstbit (absz, i)) in mpfr_pow_pos_z()
H A Dcbrt.c151 || (rnd_mode == MPFR_RNDN && mpz_tstbit (m, 0))) in mpfr_cbrt()
H A Drem1.c138 q_is_odd = mpz_tstbit (mx, 0); in mpfr_rem1()
H A Dzeta.c384 if (mpz_tstbit (sint, 0) == 0) /* |sin(Pi*s/2)| is increasing: round down in mpfr_reflection_overflow()
407 if (mpz_tstbit (sint, 1) == 0) /* -2k < s/2 < -2k+1; sin(Pi*s/2) > 0 */ in mpfr_reflection_overflow()
H A Drandom_deviate.c255 return mpz_tstbit (x->f, x->e - k); in mpfr_random_deviate_tstbit()
H A Droot.c175 || (rnd_mode == MPFR_RNDN && mpz_tstbit (m, 0))) in mpfr_rootn_ui()
/netbsd/external/lgpl3/gmp/dist/mpz/
H A Dtstbit.c51 mpz_tstbit (mpz_srcptr u, mp_bitcnt_t bit_index) __GMP_NOTHROW in mpz_tstbit() function
H A Dlucmod.c91 if (mpz_tstbit (n, bs)) in mpz_lucas_mod()
/netbsd/external/lgpl3/mpc/dist/src/
H A Dpow.c122 ymod4 = mpz_tstbit (my, 0) * 2; /* correct if my < 0 */ in fix_sign()
125 ymod4 = mpz_tstbit (my, 1) * 2 + mpz_tstbit (my, 0); in fix_sign()
343 if (mpz_tstbit (my, t)) /* multiply by c + I*d */ in mpc_pow_exact()
/netbsd/external/lgpl3/gmp/dist/rand/
H A Drandmts.c130 p->mt[0] = (mpz_tstbit (seed1, 19936L) != 0) ? 0x80000000 : 0; in randseed_mt()
/netbsd/external/lgpl3/gmp/dist/
H A Dbootstrap.c123 if (mpz_tstbit (prod, i) != 0) in mpz_invert_2exp()
/netbsd/external/lgpl3/gmp/dist/demos/expr/
H A Dexprz.c178 { "tstbit", (mpexpr_fun_t) mpz_tstbit, MPEXPR_TYPE_I_BINARY_UI },
/netbsd/external/lgpl3/mpfr/dist/tests/
H A Dtget_z.c127 if (d && mpz_tstbit (ex, 0) != 0) /* even rounding */ in check_one()
/netbsd/external/lgpl3/gmp/dist/tests/
H A Drefmpz.c38 if (mpz_tstbit (r, bit)) in refmpz_combit()
/netbsd/external/lgpl3/gmp/dist/mini-gmp/
H A Dmini-gmp.h230 int mpz_tstbit (const mpz_t, mp_bitcnt_t);
H A Dmini-gmp.c3423 if (b0 == bs || mpz_tstbit (n, bs)) in gmp_lucas_mod()
3630 mpz_tstbit (const mpz_t d, mp_bitcnt_t bit_index) in mpz_tstbit() function
3727 if (!mpz_tstbit (d, bit_index)) in mpz_setbit()
3739 if (mpz_tstbit (d, bit_index)) in mpz_clrbit()
3751 if (mpz_tstbit (d, bit_index) ^ (d->_mp_size < 0)) in mpz_combit()
/netbsd/external/lgpl3/gmp/lib/libgmp/arch/coldfire/
H A Dgmp.h1103 #define mpz_tstbit __gmpz_tstbit macro
1104 __GMP_DECLSPEC int mpz_tstbit (mpz_srcptr, mp_bitcnt_t) __GMP_NOTHROW __GMP_ATTRIBUTE_PURE;
/netbsd/external/lgpl3/gmp/lib/libgmp/arch/or1k/
H A Dgmp.h1103 #define mpz_tstbit __gmpz_tstbit macro
1104 __GMP_DECLSPEC int mpz_tstbit (mpz_srcptr, mp_bitcnt_t) __GMP_NOTHROW __GMP_ATTRIBUTE_PURE;
/netbsd/external/lgpl3/gmp/lib/libgmp/arch/alpha/
H A Dgmp.h1098 #define mpz_tstbit __gmpz_tstbit macro
1099 __GMP_DECLSPEC int mpz_tstbit (mpz_srcptr, mp_bitcnt_t) __GMP_NOTHROW __GMP_ATTRIBUTE_PURE;

123