Home
last modified time | relevance | path

Searched refs:result_bit1 (Results 1 – 8 of 8) sorted by relevance

/netbsd/external/lgpl3/gmp/dist/mpz/
H A Dkronsz.c44 int result_bit1; in mpz_si_kronecker() local
63 result_bit1 = JACOBI_BSGN_SS_BIT1 (a, b_size); in mpz_si_kronecker()
73 result_bit1 ^= JACOBI_ASGN_SU_BIT1 (a, b_low); in mpz_si_kronecker()
86 result_bit1 ^= JACOBI_TWOS_U_BIT1 (twos, b_low); in mpz_si_kronecker()
102 JACOBI_STRIP_LOW_ZEROS (result_bit1, a, b_ptr, b_abs_size, b_low); in mpz_si_kronecker()
112 result_bit1 ^= JACOBI_TWO_U_BIT1 (a); in mpz_si_kronecker()
113 return JACOBI_BIT1_TO_PN (result_bit1); in mpz_si_kronecker()
126 result_bit1 ^= JACOBI_ASGN_SU_BIT1 (a, b_low); in mpz_si_kronecker()
131 return JACOBI_BIT1_TO_PN (result_bit1); /* (1/b)=1 */ in mpz_si_kronecker()
135 result_bit1 ^= JACOBI_RECIP_UU_BIT1 (a_limb, b_low); in mpz_si_kronecker()
[all …]
H A Dkronuz.c43 int result_bit1; in mpz_ui_kronecker() local
63 result_bit1 = 0; in mpz_ui_kronecker()
78 JACOBI_STRIP_LOW_ZEROS (result_bit1, a, b_ptr, b_abs_size, b_low); in mpz_ui_kronecker()
91 ASSERT (result_bit1 == 0); in mpz_ui_kronecker()
92 result_bit1 = JACOBI_TWO_U_BIT1 (a); in mpz_ui_kronecker()
94 return JACOBI_BIT1_TO_PN (result_bit1); in mpz_ui_kronecker()
118 result_bit1 = JACOBI_TWOS_U_BIT1 (twos, b_low); in mpz_ui_kronecker()
123 return JACOBI_BIT1_TO_PN (result_bit1); /* (1/b)=1 */ in mpz_ui_kronecker()
126 JACOBI_MOD_OR_MODEXACT_1_ODD (result_bit1, b_rem, b_ptr, b_abs_size, a); in mpz_ui_kronecker()
127 result_bit1 ^= JACOBI_RECIP_UU_BIT1 (a, b_low); in mpz_ui_kronecker()
[all …]
H A Djacobi.c65 int result_bit1; in mpz_jacobi() local
97 result_bit1 = (asize < 0) << 1; in mpz_jacobi()
101 result_bit1 = 0; in mpz_jacobi()
103 JACOBI_STRIP_LOW_ZEROS (result_bit1, alow, bsrcp, bsize, blow); in mpz_jacobi()
119 result_bit1 ^= JACOBI_N1B_BIT1(blow); in mpz_jacobi()
156 result_bit1 ^= JACOBI_RECIP_UU_BIT1 (alow, blow); in mpz_jacobi()
161 result_bit1 ^= JACOBI_TWOS_U_BIT1(btwos, alow); in mpz_jacobi()
164 return JACOBI_BIT1_TO_PN (result_bit1); in mpz_jacobi()
169 return mpn_jacobi_base (alow, blow, result_bit1); in mpz_jacobi()
196 result_bit1 ^= JACOBI_TWOS_U_BIT1(btwos, alow); in mpz_jacobi()
[all …]
H A Dkronzs.c44 int result_bit1; in mpz_kronecker_si() local
62 result_bit1 = JACOBI_BSGN_SS_BIT1 (a_size, b); in mpz_kronecker_si()
80 result_bit1 ^= JACOBI_TWOS_U_BIT1 (twos, a_low); in mpz_kronecker_si()
84 return JACOBI_BIT1_TO_PN (result_bit1); /* (a/1)=1 for any a */ in mpz_kronecker_si()
86 result_bit1 ^= JACOBI_ASGN_SU_BIT1 (a_size, b_limb); in mpz_kronecker_si()
90 JACOBI_MOD_OR_MODEXACT_1_ODD (result_bit1, a_rem, a_ptr, a_size, b_limb); in mpz_kronecker_si()
91 return mpn_jacobi_base (a_rem, b_limb, result_bit1); in mpz_kronecker_si()
H A Dkronzu.c41 int result_bit1; in mpz_kronecker_ui() local
60 result_bit1 = JACOBI_ASGN_SU_BIT1 (a_size, b); in mpz_kronecker_ui()
76 result_bit1 = (JACOBI_TWOS_U_BIT1 (twos, a_low) in mpz_kronecker_ui()
81 return JACOBI_BIT1_TO_PN (result_bit1); /* (a/1)=1 for any a */ in mpz_kronecker_ui()
86 JACOBI_MOD_OR_MODEXACT_1_ODD (result_bit1, a_rem, a_ptr, a_size, b); in mpz_kronecker_ui()
87 return mpn_jacobi_base (a_rem, (mp_limb_t) b, result_bit1); in mpz_kronecker_ui()
/netbsd/external/lgpl3/gmp/dist/mpn/generic/
H A Djacbase.c52 result_bit1 ^= JACOBI_TWOS_U_BIT1 (twos, b); \
68 result_bit1 ^= two; \
92 result_bit1 ^= two ^ (two & mask); \
97 result_bit1 ^= two; \
110 result_bit1 ^= (two & mask); \
115 result_bit1 ^= two; \
138 mpn_jacobi_base (mp_limb_t a, mp_limb_t b, int result_bit1) in mpn_jacobi_base() argument
155 result_bit1 ^= JACOBI_RECIP_UU_BIT1 (a, b); in mpn_jacobi_base()
177 return JACOBI_BIT1_TO_PN (result_bit1); in mpn_jacobi_base()
/netbsd/external/lgpl3/gmp/dist/tests/
H A Drefmpz.c143 int result_bit1 = 0; in refmpz_kronecker() local
162 result_bit1 ^= JACOBI_BSGN_ZZ_BIT1 (a, b); in refmpz_kronecker()
169 result_bit1 ^= JACOBI_TWOS_U_BIT1 (twos, PTR(a)[0]); in refmpz_kronecker()
174 result_bit1 ^= JACOBI_N1B_BIT1 (PTR(b)[0]); in refmpz_kronecker()
181 result_bit1 ^= JACOBI_TWOS_U_BIT1 (twos, PTR(b)[0]); in refmpz_kronecker()
199 result_bit1 ^= JACOBI_RECIP_UU_BIT1 (PTR(a)[0], PTR(b)[0]); in refmpz_kronecker()
215 result_bit1 ^= JACOBI_TWOS_U_BIT1 (twos, PTR(b)[0]); in refmpz_kronecker()
220 return JACOBI_BIT1_TO_PN (result_bit1); in refmpz_kronecker()
/netbsd/external/lgpl3/gmp/dist/
H A Dgmp-impl.h4023 #define JACOBI_BIT1_TO_PN(result_bit1) \ argument
4024 (1 - ((int) (result_bit1) & 2))
4077 #define JACOBI_STRIP_LOW_ZEROS(result_bit1, a, b_ptr, b_size, b_low) \ argument
4091 (result_bit1) ^= JACOBI_TWO_U_BIT1(a); \
4109 #define JACOBI_MOD_OR_MODEXACT_1_ODD(result_bit1, a_rem, a_ptr, a_size, b) \ argument
4125 (result_bit1) ^= JACOBI_N1B_BIT1 (__b); \