/netbsd/external/lgpl3/gmp/dist/ |
H A D | extract-dbl.c | 185 rp[0] = (manl << (sc - GMP_NAIL_BITS)) & GMP_NUMB_MASK; in __gmp_extract_double() 192 rp[0] = (manl << GMP_NUMB_BITS - GMP_NAIL_BITS) & GMP_NUMB_MASK; in __gmp_extract_double() 198 rp[0] = (manl >> (GMP_NAIL_BITS - sc)) & GMP_NUMB_MASK; in __gmp_extract_double() 208 rp[1] = (manl << sc - GMP_NAIL_BITS) & GMP_NUMB_MASK; in __gmp_extract_double() 212 rp[0] = (manl << GMP_NUMB_BITS - GMP_NAIL_BITS + sc) & GMP_NUMB_MASK; in __gmp_extract_double() 219 rp[1] = (manl << GMP_NUMB_BITS - GMP_NAIL_BITS) & GMP_NUMB_MASK; in __gmp_extract_double() 226 rp[1] = (manl >> GMP_NAIL_BITS - sc) & GMP_NUMB_MASK; in __gmp_extract_double() 254 rp[0] = (manl << sc - 2 * GMP_NAIL_BITS) & GMP_NUMB_MASK; in __gmp_extract_double() 256 rp[0] = manl >> (2 * GMP_NAIL_BITS - sc) & GMP_NUMB_MASK; in __gmp_extract_double() 264 rp[0] = (manl << GMP_NUMB_BITS - 2 * GMP_NAIL_BITS) & GMP_NUMB_MASK; in __gmp_extract_double() [all …]
|
H A D | asl.h | 47 #define GMP_NUMB_MASK (2 * (1ul << (GMP_LIMB_BITS - 1)) - 1) macro 51 limbo = (limbo op rhs.limbo) & GMP_NUMB_MASK; \ 60 typedef std::conditional<(GMP_NUMB_MASK <= 0xffff), uint16_t, uint32_t >::type type24; 61 typedef std::conditional<(GMP_NUMB_MASK <= 0xff), uint8_t, type24>::type mtype; 66 mp_limb_t(const unsigned int rhs) { limbo = rhs & GMP_NUMB_MASK; } in mp_limb_t() 78 limbo = (limbo << rhs) & GMP_NUMB_MASK; 87 return static_cast<mp_limb_t>((-limbo) & GMP_NUMB_MASK); 91 return static_cast<mp_limb_t>((~limbo) & GMP_NUMB_MASK);
|
/netbsd/external/lgpl3/gmp/dist/mpn/generic/ |
H A D | sqrlo_basecase.c | 74 (rp)[(n) - 1] = (op * op) & GMP_NUMB_MASK; \ 122 rp[0] = (ul * ul) & GMP_NUMB_MASK; in mpn_sqrlo_basecase() 125 rp[0] = (ul * ul) & GMP_NUMB_MASK; in mpn_sqrlo_basecase() 133 rp[1] = (hi + ul * ul1 * 2) & GMP_NUMB_MASK; in mpn_sqrlo_basecase() 136 rp[1] = (hi + ul * ul1 * 2) & GMP_NUMB_MASK; in mpn_sqrlo_basecase() 150 rp[1] = hi & GMP_NUMB_MASK; in mpn_sqrlo_basecase() 151 rp[2] = (hi1 + ul1 * ul1 + (hi >> GMP_NUMB_BITS)) & GMP_NUMB_MASK; in mpn_sqrlo_basecase() 177 tp [n-1] = (cy + ((n & 1)?up[i] * up[i + 1]:0)) & GMP_NUMB_MASK; in mpn_sqrlo_basecase()
|
H A D | dive_1.c | 109 ls = ((s >> shift) | (s_next << (GMP_NUMB_BITS-shift))) & GMP_NUMB_MASK; in mpn_divexact_1() 114 l = (l * inverse) & GMP_NUMB_MASK; in mpn_divexact_1() 123 l = (l * inverse) & GMP_NUMB_MASK; in mpn_divexact_1() 130 l = (s * inverse) & GMP_NUMB_MASK; in mpn_divexact_1() 142 l = (l * inverse) & GMP_NUMB_MASK; in mpn_divexact_1()
|
H A D | diveby3.c | 39 r = mpn_bdiv_dbm1c (rp, up, un, GMP_NUMB_MASK / 3, GMP_NUMB_MASK / 3 * c); in mpn_divexact_by3c() 89 q = (l * MODLIMB_INVERSE_3) & GMP_NUMB_MASK; in mpn_divexact_by3c() 157 sm = (s * MODLIMB_INVERSE_3) & GMP_NUMB_MASK; in mpn_divexact_by3c() 159 q = (cl + sm) & GMP_NUMB_MASK; in mpn_divexact_by3c()
|
H A D | toom_interpolate_16pts.c | 129 #define BINVERT_2835 (GMP_NUMB_MASK & CNST_LIMB(0x53E3771B)) 130 #define BINVERT_42525 (GMP_NUMB_MASK & CNST_LIMB(0x9F314C35)) 131 #define BINVERT_182712915 (GMP_NUMB_MASK & CNST_LIMB(0x550659DB)) 132 #define BINVERT_188513325 (GMP_NUMB_MASK & CNST_LIMB(0xFBC333A5)) 133 #define BINVERT_255x182712915L (GMP_NUMB_MASK & CNST_LIMB(0x6FC4CB25)) 134 #define BINVERT_255x188513325L (GMP_NUMB_MASK & CNST_LIMB(0x6864275B)) 146 #define BINVERT_2835 (GMP_NUMB_MASK & CNST_LIMB(0x938CC70553E3771B)) 147 #define BINVERT_42525 (GMP_NUMB_MASK & CNST_LIMB(0xE7B40D449F314C35)) 447 r6 [n3p1 - 1] &= GMP_NUMB_MASK >> 1; in mpn_toom_interpolate_16pts() 456 r5 [n3p1 - 1] &= GMP_NUMB_MASK >> 1; in mpn_toom_interpolate_16pts() [all …]
|
H A D | bdiv_q_1.c | 63 u = ((u >> shift) | (u_next << (GMP_NUMB_BITS-shift))) & GMP_NUMB_MASK; in mpn_pi1_bdiv_q_1() 67 l = (l * di) & GMP_NUMB_MASK; in mpn_pi1_bdiv_q_1() 78 l = (l * di) & GMP_NUMB_MASK; in mpn_pi1_bdiv_q_1() 84 l = (u * di) & GMP_NUMB_MASK; in mpn_pi1_bdiv_q_1() 96 l = (l * di) & GMP_NUMB_MASK; in mpn_pi1_bdiv_q_1()
|
H A D | jacobi_2.c | 58 bl = ((bh << (GMP_NUMB_BITS - 1)) & GMP_NUMB_MASK) | (bl >> 1); in mpn_jacobi_2() 84 al = ((ah << (GMP_NUMB_BITS - c)) & GMP_NUMB_MASK) | (al >> c); in mpn_jacobi_2() 130 al = ((ah << (GMP_NUMB_BITS - c)) & GMP_NUMB_MASK) | (al >> c); in mpn_jacobi_2() 218 al = ((ah << (GMP_NUMB_BITS - c)) & GMP_NUMB_MASK) | (al >> c); in mpn_jacobi_2() 254 al = ((ah << (GMP_NUMB_BITS - c)) & GMP_NUMB_MASK) | (al >> c); in mpn_jacobi_2() 285 bl = ((bh << (GMP_NUMB_BITS - c)) & GMP_NUMB_MASK) | (bl >> c); in mpn_jacobi_2() 339 al = ((ah << (GMP_NUMB_BITS - c)) & GMP_NUMB_MASK) | (al >> c); in mpn_jacobi_2()
|
H A D | sbpi1_divappr_q.c | 90 q = GMP_NUMB_MASK; in mpn_sbpi1_divappr_q() 101 n0 = (n0 - cy) & GMP_NUMB_MASK; in mpn_sbpi1_divappr_q() 125 q = GMP_NUMB_MASK; in mpn_sbpi1_divappr_q() 147 n0 = (n0 - cy) & GMP_NUMB_MASK; in mpn_sbpi1_divappr_q() 169 q = GMP_NUMB_MASK; in mpn_sbpi1_divappr_q()
|
H A D | sbpi1_div_q.c | 93 q = GMP_NUMB_MASK; in mpn_sbpi1_div_q() 104 n0 = (n0 - cy) & GMP_NUMB_MASK; in mpn_sbpi1_div_q() 128 q = GMP_NUMB_MASK; in mpn_sbpi1_div_q() 150 n0 = (n0 - cy) & GMP_NUMB_MASK; in mpn_sbpi1_div_q() 172 q = GMP_NUMB_MASK; in mpn_sbpi1_div_q()
|
H A D | sbpi1_div_qr.c | 81 q = GMP_NUMB_MASK; in mpn_sbpi1_div_qr() 92 n0 = (n0 - cy) & GMP_NUMB_MASK; in mpn_sbpi1_div_qr() 94 n1 = (n1 - cy1) & GMP_NUMB_MASK; in mpn_sbpi1_div_qr()
|
H A D | dcpi1_divappr_q.c | 78 qp[i] = GMP_NUMB_MASK; in mpn_dcpi1_divappr_q_n() 139 q = GMP_NUMB_MASK; in mpn_dcpi1_divappr_q() 153 n0 = (n0 - cy) & GMP_NUMB_MASK; in mpn_dcpi1_divappr_q() 155 n1 = (n1 - cy1) & GMP_NUMB_MASK; in mpn_dcpi1_divappr_q() 162 q = (q - 1) & GMP_NUMB_MASK; in mpn_dcpi1_divappr_q()
|
H A D | toom_interpolate_12pts.c | 125 #define BINVERT_2835 (GMP_NUMB_MASK & CNST_LIMB(0x53E3771B)) 126 #define BINVERT_42525 (GMP_NUMB_MASK & CNST_LIMB(0x9F314C35)) 129 #define BINVERT_2835 (GMP_NUMB_MASK & CNST_LIMB(0x938CC70553E3771B)) 130 #define BINVERT_42525 (GMP_NUMB_MASK & CNST_LIMB(0xE7B40D449F314C35)) 137 (255 & 1 * mpn_bdiv_dbm1 (dst, src, size, __GMP_CAST (mp_limb_t, GMP_NUMB_MASK / 255))) 295 r4 [n3p1 - 1] &= GMP_NUMB_MASK >> 1; in mpn_toom_interpolate_12pts() 304 r5 [n3p1 - 1] &= GMP_NUMB_MASK >> 1; in mpn_toom_interpolate_12pts()
|
H A D | add_err3_n.c | 116 el1 &= GMP_NUMB_MASK; in mpn_add_err3_n() 118 el2 &= GMP_NUMB_MASK; in mpn_add_err3_n() 120 el3 &= GMP_NUMB_MASK; in mpn_add_err3_n()
|
H A D | mode1o.c | 154 l = (l * inverse) & GMP_NUMB_MASK; in mpn_modexact_1c_odd() 179 l = (l * inverse) & GMP_NUMB_MASK; in mpn_modexact_1c_odd() 227 y = (y * inverse) & GMP_NUMB_MASK;
|
H A D | sub_err3_n.c | 116 el1 &= GMP_NUMB_MASK; in mpn_sub_err3_n() 118 el2 &= GMP_NUMB_MASK; in mpn_sub_err3_n() 120 el3 &= GMP_NUMB_MASK; in mpn_sub_err3_n()
|
H A D | scan0.c | 49 alimb = *p++ ^ GMP_NUMB_MASK; in mpn_scan0() 55 alimb = *p++ ^ GMP_NUMB_MASK; in mpn_scan0()
|
H A D | rshift.c | 57 retval = (high_limb << tnc) & GMP_NUMB_MASK; in mpn_rshift() 63 *rp++ = low_limb | ((high_limb << tnc) & GMP_NUMB_MASK); in mpn_rshift()
|
H A D | tdiv_qr.c | 82 d2p[0] = (dp[0] << cnt) & GMP_NUMB_MASK; in mpn_tdiv_qr() 90 | ((n2p[1] << (GMP_NUMB_BITS - cnt)) & GMP_NUMB_MASK); in mpn_tdiv_qr() 306 x = (dp[in - 1] << cnt) & GMP_NUMB_MASK; in mpn_tdiv_qr() 334 n2p[0] |= np[in - 1] & (GMP_NUMB_MASK >> cnt); in mpn_tdiv_qr() 337 cy2 = mpn_submul_1 (n2p, qp, qn, dp[in - 1] & (GMP_NUMB_MASK >> cnt)); in mpn_tdiv_qr()
|
H A D | lshift.c | 61 high_limb = (low_limb << cnt) & GMP_NUMB_MASK; in mpn_lshift() 67 high_limb = (low_limb << cnt) & GMP_NUMB_MASK; in mpn_lshift()
|
H A D | lshiftc.c | 67 *--rp = (~(high_limb | (low_limb >> tnc))) & GMP_NUMB_MASK; in mpn_lshiftc() 70 *--rp = (~high_limb) & GMP_NUMB_MASK; in mpn_lshiftc()
|
H A D | dcpi1_div_qr.c | 145 q = GMP_NUMB_MASK; in mpn_dcpi1_div_qr() 159 n0 = (n0 - cy) & GMP_NUMB_MASK; in mpn_dcpi1_div_qr() 161 n1 = (n1 - cy1) & GMP_NUMB_MASK; in mpn_dcpi1_div_qr() 168 q = (q - 1) & GMP_NUMB_MASK; in mpn_dcpi1_div_qr()
|
/netbsd/external/lgpl3/gmp/dist/tests/mpz/ |
H A D | t-set_si.c | 32 #define ENTRY(n) { n, { (n) & GMP_NUMB_MASK, (n) >> GMP_NUMB_BITS } } in check_data() 50 { LONG_MAX, 2, { LONG_MAX & GMP_NUMB_MASK, LONG_MAX >> GMP_NUMB_BITS } }, in check_data() 51 { -LONG_MAX, -2, { LONG_MAX & GMP_NUMB_MASK, LONG_MAX >> GMP_NUMB_BITS }}, in check_data()
|
/netbsd/external/lgpl3/gmp/dist/mpz/ |
H A D | fdiv_ui.c | 69 dp[0] = divisor & GMP_NUMB_MASK; in mpz_fdiv_ui() 80 rp[0] = rl & GMP_NUMB_MASK; in mpz_fdiv_ui()
|
H A D | cdiv_ui.c | 71 dp[0] = divisor & GMP_NUMB_MASK; in mpz_cdiv_ui() 82 rp[0] = rl & GMP_NUMB_MASK; in mpz_cdiv_ui()
|