Home
last modified time | relevance | path

Searched refs:mpz_setbit (Results 1 – 25 of 78) sorted by relevance

1234

/netbsd/external/lgpl3/gmp/dist/mini-gmp/tests/
H A Dt-invert.c43 mpz_setbit (m, GMP_LIMB_BITS); in test_2by1()
48 mpz_setbit (t, 2* GMP_LIMB_BITS); in test_2by1()
79 mpz_setbit (m, GMP_LIMB_BITS); in test_3by2()
84 mpz_setbit (t, 3 * GMP_LIMB_BITS); in test_3by2()
125 mpz_setbit (u, GMP_LIMB_BITS -1); in testmain()
133 mpz_setbit (u, 2*GMP_LIMB_BITS -1); in testmain()
H A Dt-bitops.c44 mpz_setbit (res, b); in testmain()
/netbsd/external/lgpl3/gmp/dist/tests/mpq/
H A Dt-cmp_z.c63 mpz_setbit (DEN (a), i*m); /* \sum_0^i 2^(i*m) */ in sizes_test()
67 mpz_setbit (NUM (a), j*m); /* 2^(j*m) */ in sizes_test()
71 mpz_setbit (b, k*m); /* 2^(k*m) */ in sizes_test()
/netbsd/external/lgpl3/gmp/dist/tests/mpz/
H A Dt-cong_2exp.c175 mpz_setbit (c, en); in check_random_bits()
178 mpz_setbit (a, ec); in check_random_bits()
182 mpz_setbit (a, ea); in check_random_bits()
H A Dt-hamdist.c39 mpz_setbit (x, i); in check_twobits()
41 mpz_setbit (y, j); in check_twobits()
H A Dt-gcd_ui.c77 mpz_setbit (x, GMP_NUMB_BITS); in check_ui_factors()
105 mpz_setbit (b, GMP_NUMB_BITS - 1); in check_ui_factors()
H A Dt-bit.c88 mpz_setbit (got, i*GMP_NUMB_BITS-1); in check_clr_extend()
242 mpz_setbit (x, bit); in check_single()
310 mpz_setbit (x, bitindex); in check_random()
H A Dt-popcount.c36 mpz_setbit (n, i); in check_onebit()
H A Dt-primorial_ui.c108 mpz_setbit (f, 64); /* f = 2^64 + 13 */ in main()
H A Dt-pprime_p.c192 mpz_setbit (pp, i); /* 2^i + 1 */ in check_fermat_mersenne()
/netbsd/external/lgpl3/gmp/dist/tests/mpn/
H A Dt-gcd_11.c74 mpz_setbit (a, 0); in main()
75 mpz_setbit (b, 0); in main()
H A Dt-gcd_22.c75 mpz_setbit (a, 0); in main()
76 mpz_setbit (b, 0); in main()
H A Dlogic.c85 mpz_setbit (a, i * 8 - 1); in main()
86 mpz_setbit (b, i * 8 - 1); in main()
/netbsd/external/lgpl3/gmp/dist/
H A Dgen-bases.c131 mpz_setbit (t, prec + EXTRA); in mp_2logb()
136 mpz_setbit (two, prec + EXTRA + 1); in mp_2logb()
153 mpz_setbit (r, i); /* set next less significant bit */ in mp_2logb()
H A Dbootstrap.c101 mpz_setbit (t, 2*numb_bits - norm); in mpz_preinv_invert()
124 mpz_setbit (inv, i); in mpz_invert_2exp()
H A Dgen-trialdivtab.c95 mpz_setbit (B, limb_bits); in main()
103 mpz_setbit (Bhalf, limb_bits - 1); in main()
H A Dgen-fib.c44 mpz_setbit (limit, numb_bits); in generate()
H A Dgen-psqr.c205 mpz_setbit (mask, (unsigned long) idx); in square_mask()
223 mpz_setbit (sq_res_0x100[res / limb_bits], in generate_sq_res_0x100()
/netbsd/external/lgpl3/gmp/dist/tests/rand/
H A Dt-lc2exp.c66 mpz_setbit (a, 1000L); in check_nega()
175 mpz_setbit (sd, 300L); in check_bigs()
H A Dt-urndmm.c53 mpz_setbit (m, 80L); in check_params()
/netbsd/external/lgpl3/gmp/dist/demos/
H A Dprimes.c170 mpz_setbit (fr2, 0); /* make odd */ in main()
172 mpz_setbit (to2, 0); /* make odd */ in main()
/netbsd/external/lgpl3/gmp/dist/mpz/
H A Dnextprime.c68 mpz_setbit (p, 0); in mpz_nextprime()
H A Dsetbit.c35 mpz_setbit (mpz_ptr d, mp_bitcnt_t bit_idx) in mpz_setbit() function
/netbsd/external/lgpl3/gmp/dist/rand/
H A Drandmts.c122 mpz_setbit (mod, 19937L); in randseed_mt()
/netbsd/external/lgpl3/gmp/dist/tests/mpf/
H A Dt-set.c63 mpz_setbit (z, precbits - 1); /* make sure msb is set */ in check_random()

1234