Searched refs:POW2_P (Results 1 - 14 of 14) sorted by relevance

/netbsd-current/external/lgpl3/gmp/dist/rand/
H A Drandmui.c64 bits = GMP_LIMB_BITS - leading - (POW2_P(n) != 0);
/netbsd-current/external/lgpl3/gmp/dist/mpz/
H A Dstronglucas.c84 else if (! POW2_P (D % 7))
103 else if (! POW2_P (D % 17) && ! POW2_P (17 - D % 17))
H A Durandomm.c58 pow2 = POW2_P (nh) && (size == 1 || mpn_zero_p (np, size - 1));
H A Dout_str.c87 if (! POW2_P (base))
H A Dget_str.c90 if (! POW2_P (base))
/netbsd-current/external/lgpl3/gmp/dist/tests/mpn/
H A Dt-mp_bases.c73 if (POW2_P (base))
/netbsd-current/external/lgpl3/gmp/dist/mpn/generic/
H A Dperfpow.c273 if (s + 1 == n && POW2_P (np[s]))
275 return ! (neg && POW2_P (twos));
325 ans = ! (neg && POW2_P (g));
H A Dset_str.c71 if (POW2_P (base))
H A Dget_str.c87 if POW2_P (n)
385 if (POW2_P (base))
/netbsd-current/external/lgpl3/gmp/dist/
H A Dgen-bases.c44 #define POW2_P(n) (((n) & ((n) - 1)) == 0) macro
199 if (POW2_P (base))
H A Dgmp-impl.h363 (POW2_P(m) ? (a) + (-(a))%(m) \
560 #define POW2_P(n) (((n) & ((n) - 1)) == 0) macro
2964 if (POW2_P (base)) \
/netbsd-current/external/lgpl3/gmp/dist/tests/
H A Dmisc.c362 return POW2_P (ptr[i]); /* high limb power of 2 */
H A Drefmpn.c2416 if (POW2_P (base))
2439 if (POW2_P (base))
/netbsd-current/external/lgpl3/gmp/dist/tests/devel/
H A Dtry.c2852 if (POW2_P (base))

Completed in 375 milliseconds