Searched refs:mpz_tstbit (Results 1 - 25 of 52) sorted by relevance

123

/netbsd-current/external/lgpl3/gmp/dist/mini-gmp/tests/
H A Dt-bitops.c54 if (!mpz_tstbit (res, b))
56 fprintf (stderr, "mpz_tstbit failed (after mpz_setbit):\n");
73 if (mpz_tstbit (res, b))
75 fprintf (stderr, "mpz_tstbit failed (after mpz_clrbit):\n");
93 if (mpz_tstbit (res, b) != mpz_tstbit (a, b))
95 fprintf (stderr, "mpz_tstbit failed (after mpz_combit):\n");
H A Dt-cong.c178 if (mpz_tstbit (bs, 0))
180 if (mpz_tstbit (bs, 1))
182 if (mpz_tstbit (bs, 2))
/netbsd-current/external/lgpl3/gmp/dist/mpz/
H A Dtstbit.c0 /* mpz_tstbit -- test a specified bit.
51 mpz_tstbit (mpz_srcptr u, mp_bitcnt_t bit_index) __GMP_NOTHROW
H A Dlucmod.c91 if (mpz_tstbit (n, bs))
/netbsd-current/external/lgpl3/gmp/dist/tests/mpz/
H A Dt-bit.c1 /* Test mpz_setbit, mpz_clrbit, mpz_tstbit.
164 /* See that mpz_tstbit matches a twos complement calculated explicitly, for
196 got = mpz_tstbit (z, i);
236 if (mpz_tstbit (x, bit) != 0)
244 if (mpz_tstbit (x, bit) != 1)
252 if (mpz_tstbit (x, bit) != 0)
260 if (mpz_tstbit (x, bit) != 1)
268 if (mpz_tstbit (x, bit) != 0)
309 bit0 = mpz_tstbit (x, bitindex);
314 bit1 = mpz_tstbit (
[all...]
H A Dt-scan.c33 if (mpz_tstbit (z, i) == sought)
H A Dt-powm.c146 if (mpz_tstbit (exp2, 0))
/netbsd-current/external/lgpl3/gmp/dist/
H A Dbootstrap.c123 if (mpz_tstbit (prod, i) != 0)
/netbsd-current/external/lgpl3/gmp/dist/rand/
H A Drandmts.c130 p->mt[0] = (mpz_tstbit (seed1, 19936L) != 0) ? 0x80000000 : 0;
/netbsd-current/external/lgpl3/mpfr/dist/src/
H A Dcbrt.c151 || (rnd_mode == MPFR_RNDN && mpz_tstbit (m, 0)))
H A Dgrandom.c132 s1 = mpz_tstbit (x, 0);
133 s2 = mpz_tstbit (x, 1);
H A Dpow_z.c87 if (mpz_tstbit (absz, i - 2))
92 if (mpz_tstbit (absz, i))
H A Drandom_deviate.c53 * extracting portions of an mpz (namely through mpz_tstbit) without hurting
255 return mpz_tstbit (x->f, x->e - k);
H A Drem1.c138 q_is_odd = mpz_tstbit (mx, 0);
H A Dzeta.c384 if (mpz_tstbit (sint, 0) == 0) /* |sin(Pi*s/2)| is increasing: round down
407 if (mpz_tstbit (sint, 1) == 0) /* -2k < s/2 < -2k+1; sin(Pi*s/2) > 0 */
H A Droot.c175 || (rnd_mode == MPFR_RNDN && mpz_tstbit (m, 0)))
/netbsd-current/external/lgpl3/gmp/dist/demos/expr/
H A Dexprz.c178 { "tstbit", (mpexpr_fun_t) mpz_tstbit, MPEXPR_TYPE_I_BINARY_UI },
/netbsd-current/external/lgpl3/mpc/dist/src/
H A Dpow.c122 ymod4 = mpz_tstbit (my, 0) * 2; /* correct if my < 0 */
125 ymod4 = mpz_tstbit (my, 1) * 2 + mpz_tstbit (my, 0);
343 if (mpz_tstbit (my, t)) /* multiply by c + I*d */
/netbsd-current/external/lgpl3/mpfr/dist/tests/
H A Dtget_z.c127 if (d && mpz_tstbit (ex, 0) != 0) /* even rounding */
/netbsd-current/external/lgpl3/gmp/dist/tests/
H A Drefmpz.c38 if (mpz_tstbit (r, bit))
/netbsd-current/external/lgpl3/gmp/dist/mini-gmp/
H A Dmini-gmp.h230 int mpz_tstbit (const mpz_t, mp_bitcnt_t);
H A Dmini-gmp.c3437 /* mpz_tstbit(n,bs) or the bit is 0 in $n$ but */
3439 if (b0 == bs || mpz_tstbit (n, bs))
3647 mpz_tstbit (const mpz_t d, mp_bitcnt_t bit_index)
3744 if (!mpz_tstbit (d, bit_index))
3756 if (mpz_tstbit (d, bit_index))
3768 if (mpz_tstbit (d, bit_index) ^ (d->_mp_size < 0))
3630 mpz_tstbit (const mpz_t d, mp_bitcnt_t bit_index) function
/netbsd-current/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-current/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-current/external/lgpl3/gmp/lib/libgmp/arch/sh3el/
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;

Completed in 225 milliseconds

123