NOTE : For this common file, either basic/reduc.h or mg/reduc.h has to be pre-included.
More...
|
template<size_t K> |
rint< K > & | operator++ (rint< K > &) |
|
template<size_t K> |
rint< K > | operator++ (rint< K > &, int) |
|
template<size_t K> |
rint< K > & | operator+= (rint< K > &, const rint< K > &) |
|
template<size_t K, typename T > |
std::enable_if< std::is_unsigned< T >::value, rint< K > & >::type | operator+= (rint< K > &, const T &) |
|
template<size_t K, typename T > |
std::enable_if< std::is_signed< T >::value, rint< K > & >::type | operator+= (rint< K > &, const T &) |
|
template<size_t K> |
rint< K > | operator+ (const rint< K > &, const rint< K > &) |
|
template<size_t K, typename T > |
std::enable_if< std::is_unsigned< T >::value, rint< K > >::type | operator+ (const rint< K > &, const T &) |
|
template<size_t K, typename T > |
std::enable_if< std::is_unsigned< T >::value, rint< K > >::type | operator+ (const T &, const rint< K > &) |
|
template<size_t K, typename T > |
std::enable_if< std::is_signed< T >::value, rint< K > >::type | operator+ (const rint< K > &, const T &) |
|
template<size_t K, typename T > |
std::enable_if< std::is_signed< T >::value, rint< K > >::type | operator+ (const T &, const rint< K > &) |
|
template<size_t K> |
void | add (bool &r, rint< K > &a, const rint< K > &b, const rint< K > &c) |
|
template<size_t K> |
void | add (bool &r, rint< K > &a, const rint< K > &c) |
|
template<size_t K> |
void | add (rint< K > &a, const rint< K > &b, const rint< K > &c) |
|
template<size_t K> |
void | add (rint< K > &a, const rint< K > &c) |
|
template<size_t K, typename T > |
std::enable_if< std::is_arithmetic< T >::value, void >::type | add (bool &r, rint< K > &a, const rint< K > &b, const T &c) |
|
template<size_t K, typename T > |
std::enable_if< std::is_arithmetic< T >::value, void >::type | add (bool &r, rint< K > &a, const T &c) |
|
template<size_t K, typename T > |
std::enable_if< std::is_arithmetic< T >::value, void >::type | add (rint< K > &a, const rint< K > &b, const T &c) |
|
template<size_t K, typename T > |
std::enable_if< std::is_arithmetic< T >::value, void >::type | add (rint< K > &a, const T &c) |
|
template<size_t K> |
void | add_1 (bool &r, rint< K > &a, const rint< K > &b) |
|
template<size_t K> |
void | add_1 (bool &r, rint< K > &a) |
|
template<size_t K> |
void | add_1 (rint< K > &a, const rint< K > &b) |
|
template<size_t K> |
void | add_1 (rint< K > &a) |
|
template<size_t K, typename T > |
std::enable_if< std::is_arithmetic< T >::value, rint< K > >::type | operator+ (const rint< K > &b, const T &c) |
|
template<size_t K, typename T > |
std::enable_if< std::is_arithmetic< T >::value, rint< K > >::type | operator+ (const T &c, const rint< K > &b) |
|
template<size_t K> |
bool | operator== (const rint< K > &, const rint< K > &) |
|
template<size_t K, typename T > |
std::enable_if< std::is_arithmetic< T >::value, bool >::type | operator== (const rint< K > &, const T &) |
|
template<size_t K, typename T > |
std::enable_if< std::is_arithmetic< T >::value, bool >::type | operator== (const T &, const rint< K > &) |
|
template<size_t K> |
bool | operator!= (const rint< K > &, const rint< K > &) |
|
template<size_t K, typename T > |
std::enable_if< std::is_arithmetic< T >::value, bool >::type | operator!= (const rint< K > &, const T &) |
|
template<size_t K, typename T > |
std::enable_if< std::is_arithmetic< T >::value, bool >::type | operator!= (const T &, const rint< K > &) |
|
template<size_t K> |
bool | operator> (const rint< K > &, const rint< K > &) |
|
template<size_t K, typename T > |
std::enable_if< std::is_arithmetic< T >::value, bool >::type | operator> (const rint< K > &, const T &) |
|
template<size_t K, typename T > |
std::enable_if< std::is_arithmetic< T >::value, bool >::type | operator> (const T &, const rint< K > &) |
|
template<size_t K> |
bool | operator>= (const rint< K > &, const rint< K > &) |
|
template<size_t K, typename T > |
std::enable_if< std::is_arithmetic< T >::value, bool >::type | operator>= (const rint< K > &, const T &) |
|
template<size_t K, typename T > |
std::enable_if< std::is_arithmetic< T >::value, bool >::type | operator>= (const T &, const rint< K > &) |
|
template<size_t K> |
bool | operator< (const rint< K > &, const rint< K > &) |
|
template<size_t K, typename T > |
std::enable_if< std::is_arithmetic< T >::value, bool >::type | operator< (const rint< K > &, const T &) |
|
template<size_t K, typename T > |
std::enable_if< std::is_arithmetic< T >::value, bool >::type | operator< (const T &, const rint< K > &) |
|
template<size_t K> |
bool | operator<= (const rint< K > &, const rint< K > &) |
|
template<size_t K, typename T > |
std::enable_if< std::is_arithmetic< T >::value, bool >::type | operator<= (const rint< K > &, const T &) |
|
template<size_t K, typename T > |
std::enable_if< std::is_arithmetic< T >::value, bool >::type | operator<= (const T &, const rint< K > &) |
|
template<size_t K> |
int | cmp (const rint< K > &a, const rint< K > &b) |
|
template<size_t K, typename T > |
std::enable_if< std::is_unsigned< T >::value, int >::type | cmp (const rint< K > &a, const T &b) |
|
template<size_t K, typename T > |
std::enable_if< std::is_signed< T >::value, int >::type | cmp (const rint< K > &a, const T &b) |
|
template<size_t K> |
rint< K > & | mpz_to_rint (ruint< K > &, const mpz_class &) |
|
template<size_t K> |
mpz_class & | rint_to_mpz (mpz_class &, const rint< K > &) |
|
template<size_t K> |
rint< K > & | mpz_to_rint (rint< K > &a, const mpz_class &b) |
|
template<size_t K> |
mpz_ptr | rint_to_mpz_t (mpz_ptr a, const rint< K > &b) |
|
template<size_t K> |
rint< K > & | mpz_t_to_rint (rint< K > &a, mpz_srcptr b) |
|
template<size_t K> |
std::ostream & | operator<< (std::ostream &, const rint< K > &) |
|
template<size_t K> |
std::ostream & | display_dec (std::ostream &out, const rint< K > &a) |
|
template<size_t K> |
std::istream & | operator>> (std::istream &is, rint< K > &a) |
|
template<size_t K> |
rint< K > & | operator%= (rint< K > &, const rint< K > &) |
|
template<size_t K, typename T > |
std::enable_if< std::is_arithmetic< T >::value, rint< K > & >::type | operator%= (rint< K > &, const T &) |
|
template<size_t K> |
rint< K > & | operator/= (rint< K > &, const rint< K > &) |
|
template<size_t K, typename T > |
std::enable_if< std::is_arithmetic< T >::value, rint< K > & >::type | operator/= (rint< K > &, const T &) |
|
template<size_t K> |
rint< K > | operator% (const rint< K > &, const rint< K > &) |
|
template<size_t K, typename T > |
std::enable_if< std::is_arithmetic< T >::value, rint< K > >::type | operator% (const rint< K > &, const T &) |
|
template<size_t K> |
rint< K > | operator/ (const rint< K > &, const rint< K > &) |
|
template<size_t K, typename T > |
std::enable_if< std::is_arithmetic< T >::value, rint< K > >::type | operator/ (const rint< K > &, const T &) |
|
template<size_t K> |
rint< K > & | div_q (rint< K > &q, const rint< K > &a, const rint< K > &b) |
|
template<size_t K, typename T > |
std::enable_if< std::is_arithmetic< T >::value, rint< K > & >::type | div_q (rint< K > &q, const rint< K > &a, const T &b) |
|
template<size_t K> |
rint< K > & | div_r (rint< K > &r, const rint< K > &a, const rint< K > &b) |
|
template<size_t K, typename T > |
std::enable_if< std::is_arithmetic< T >::value, T & >::type | div_r (T &r, const rint< K > &a, const T &b) |
|
template<size_t K> |
rint< K > & | inv_mod (rint< K > &, const rint< K > &, const rint< K > &) |
|
template<size_t K, size_t R> |
void | mod_n (rint< K > &, const rint< R > &, const rint< K > &) |
|
template<size_t K> |
void | mod_n (rint< K > &, const rint< K > &) |
|
template<size_t K> |
rint< K > | operator~ (const rint< K > &c) |
|
template<size_t K> |
rint< K > | operator- (const rint< K > &c) |
|
template<size_t K> |
rint< K > & | neg (rint< K > &, const rint< K > &) |
|
template<size_t K> |
rint< K > & | neg (rint< K > &) |
|
template<size_t K> |
rint< K > & | operator|= (rint< K > &b, const rint< K > &c) |
|
template<size_t K> |
rint< K > & | operator^= (rint< K > &b, const rint< K > &c) |
|
template<size_t K> |
rint< K > & | operator&= (rint< K > &b, const rint< K > &c) |
|
template<size_t K, typename T > |
std::enable_if< std::is_arithmetic< T >::value, rint< K > & >::type | operator|= (rint< K > &b, const T &c) |
|
template<size_t K, typename T > |
std::enable_if< std::is_arithmetic< T >::value, rint< K > & >::type | operator^= (rint< K > &b, const T &c) |
|
template<size_t K, typename T > |
std::enable_if< std::is_arithmetic< T >::value, rint< K > & >::type | operator&= (rint< K > &b, const T &c) |
|
template<size_t K> |
rint< K > | operator| (const rint< K > &b, const rint< K > &c) |
|
template<size_t K> |
rint< K > | operator^ (const rint< K > &b, const rint< K > &c) |
|
template<size_t K> |
rint< K > | operator& (const rint< K > &b, const rint< K > &c) |
|
template<size_t K, typename T > |
std::enable_if< std::is_arithmetic< T >::value, rint< K > >::type | operator| (const rint< K > &b, const T &c) |
|
template<size_t K, typename T > |
std::enable_if< std::is_arithmetic< T >::value, rint< K > >::type | operator^ (const rint< K > &b, const T &c) |
|
template<size_t K, typename T > |
std::enable_if< std::is_arithmetic< T >::value, T >::type | operator& (const rint< K > &b, const T &c) |
|
template<size_t K, typename T > |
rint< K > | operator<< (const rint< K > &, const T &) |
|
template<size_t K, typename T > |
rint< K > | operator>> (const rint< K > &, const T &) |
|
template<size_t K, typename T > |
rint< K > & | operator<<= (rint< K > &, const T &) |
|
template<size_t K, typename T > |
rint< K > & | operator>>= (rint< K > &, const T &) |
|
template<size_t K, size_t MG> |
rmint< K, MG > & | operator++ (rmint< K, MG > &) |
|
template<size_t K, size_t MG> |
rmint< K, MG > | operator++ (rmint< K, MG > &, int) |
|
template<size_t K, size_t MG> |
rmint< K, MG > & | operator+= (rmint< K, MG > &, const rmint< K, MG > &) |
|
template<size_t K, size_t MG, typename T > |
| __RECINT_IS_ARITH (T, rmint< K, MG > &) operator+ =(rmint<K, MG>&, const T&) |
|
template<size_t K, size_t MG> |
rmint< K, MG > | operator+ (const rmint< K, MG > &, const rmint< K, MG > &) |
|
template<size_t K, size_t MG, typename T > |
| __RECINT_IS_ARITH (T, rmint< K, MG >) operator+(const rmint< K |
|
template<size_t K, size_t MG, typename T > |
MG const T & | __RECINT_IS_ARITH (T, rmint< K, MG >) operator+(const T & |
|
template<size_t K, size_t MG> |
MG const T const rmint< K, MG > &rmint< K, MG > & | add (rmint< K, MG > &, const rmint< K, MG > &, const rmint< K, MG > &) |
|
template<size_t K, size_t MG> |
rmint< K, MG > & | add (rmint< K, MG > &, const rmint< K, MG > &) |
|
template<size_t K, size_t MG, typename T > |
MG const rmint< K, MG > const T & | __RECINT_IS_ARITH (T, rmint< K, MG > &) add(rmint< K |
|
template<size_t K, size_t MG> |
rmint< K, MG > & | add (rmint< K, MG > &a, const rmint< K, MG > &b, const rmint< K, MG > &c) |
|
rmint< K, MG > | cp (c) |
|
| add (r, a.Value, b.Value, cp.Value) |
|
| if (r||a.Value >=a.p) sub(a.Value |
|
rmint< K, MG > | bp (b) |
|
| add (r, a.Value, bp.Value) |
|
template<size_t K> |
rmint< K, MGI > & | addmul (rmint< K, MGI > &, const rmint< K, MGI > &, const rmint< K, MGI > &) |
|
template<size_t K, typename T > |
| __RECINT_IS_ARITH (T, void) addmul(rmint< K |
|
| addmul (a, b, cr) |
|
template<size_t K> |
void | exp (rmint< K, MG_INACTIVE > &, const rmint< K, MG_INACTIVE > &, const ruint< K > &) |
|
template<size_t K, typename T > |
std::enable_if< std::is_unsigned< T >::value, void >::type | exp (rmint< K, MG_INACTIVE > &, const rmint< K, MG_INACTIVE > &, const T &) |
|
template<size_t K> |
rmint< K, MG_INACTIVE > & | inv (rmint< K, MG_INACTIVE > &, const rmint< K, MG_INACTIVE > &) |
|
template<size_t K> |
rmint< K, MG_INACTIVE > & | inv (rmint< K, MG_INACTIVE > &) |
|
template<size_t K, typename T > |
std::enable_if< std::is_arithmetic< T >::value, rmint< K, MG_INACTIVE > & >::type | inv (rmint< K, MG_INACTIVE > &, const T &) |
|
template<size_t K, typename T > |
std::enable_if< std::is_arithmetic< T >::value, void >::type | mul (rmint< K, MG_INACTIVE > &, const rmint< K, MG_INACTIVE > &, const T &) |
|
template<size_t K, typename T > |
std::enable_if< std::is_arithmetic< T >::value, void >::type | mul (rmint< K, MG_INACTIVE > &, const T &) |
|
template<size_t K> |
rmint< K, MGI > & | reduction (rmint< K, MGI > &t, const ruint< K+1 > &c) |
|
template<size_t K> |
rmint< K, MGI > & | reduction (rmint< K, MGI > &t, const ruint< K > &c) |
|
template<size_t K> |
rmint< K, MGI > & | reduction (rmint< K, MGI > &t, const rmint< K, MGI > &c) |
|
template<size_t K> |
rmint< K, MGI > & | reduction (rmint< K, MGI > &t) |
|
template<size_t K> |
ruint< K > | get_ruint (const rmint< K, MGI > &a) |
|
template<size_t K> |
rmint< K, MGI > & | get_ready (rmint< K, MGI > &a) |
|
template<size_t K, size_t MG> |
bool | operator== (const rmint< K, MG > &, const rmint< K, MG > &) |
|
template<size_t K, size_t MG> |
bool | operator== (const rmint< K, MG > &, const ruint< K > &) |
|
template<size_t K, size_t MG, typename T > |
| __RECINT_IS_ARITH (T, bool) operator ==(const T&, const rmint<K, MG>&) |
|
template<size_t K, size_t MG> |
bool | operator!= (const rmint< K, MG > &, const rmint< K, MG > &) |
|
template<size_t K, size_t MG> |
bool | operator!= (const rmint< K, MG > &, const ruint< K > &) |
|
template<size_t K, size_t MG> |
bool | operator> (const rmint< K, MG > &, const rmint< K, MG > &) |
|
template<size_t K, size_t MG, typename T > |
MG const T & | __RECINT_IS_ARITH (T, bool) operator>(const T & |
|
template<size_t K, size_t MG> |
MG const T const rmint< K, MG > &bool | operator>= (const rmint< K, MG > &, const rmint< K, MG > &) |
|
template<size_t K, size_t MG> |
bool | operator< (const rmint< K, MG > &, const rmint< K, MG > &) |
|
template<size_t K, size_t MG> |
MG const T const rmint< K, MG > &bool | operator<= (const rmint< K, MG > &, const rmint< K, MG > &) |
|
template<size_t K> |
bool | operator== (const rmint< K, MGI > &a, const ruint< K > &b) |
|
template<size_t K> |
bool | operator== (const rmint< K, MGA > &a, const ruint< K > &b) |
|
template<size_t K, typename T > |
| __RECINT_IS_ARITH (T, bool) operator |
|
template<size_t K, size_t MG> |
rmint< K, MG > & | mpz_to_rmint (rmint< K, MG > &, const mpz_class &) |
|
template<size_t K, size_t MG> |
mpz_class & | rmint_to_mpz (mpz_class &, const rmint< K, MG > &) |
|
template<size_t K, size_t MG> |
std::ostream & | operator<< (std::ostream &, const rmint< K, MG > &) |
|
template<size_t K, size_t MG> |
std::istream & | operator>> (std::istream &, rmint< K, MG > &) |
|
template<size_t K, size_t MG> |
std::ostream & | write_raw (std::ostream &out, const rmint< K, MG > &a) |
|
template<size_t K, size_t MG> |
std::istream & | read_raw (std::istream &is, rmint< K, MG > &a) |
|
template<size_t K, size_t MG> |
rmint< K, MG > & | operator%= (rmint< K, MG > &, const rmint< K, MG > &) |
|
template<size_t K, size_t MG, typename T > |
std::enable_if< std::is_arithmetic< T >::value, rmint< K, MG > & >::type | operator%= (rmint< K, MG > &, const T &) |
|
template<size_t K, size_t MG> |
rmint< K, MG > & | operator/= (rmint< K, MG > &, const rmint< K, MG > &) |
|
template<size_t K, size_t MG, typename T > |
std::enable_if< std::is_arithmetic< T >::value, rmint< K, MG > & >::type | operator/= (rmint< K, MG > &, const T &) |
|
template<size_t K, size_t MG> |
rmint< K, MG > | operator/ (const rmint< K, MG > &, const rmint< K, MG > &) |
|
template<size_t K, size_t MG, typename T > |
std::enable_if< std::is_arithmetic< T >::value, rmint< K, MG > >::type | operator/ (const rmint< K, MG > &, const T &) |
|
template<size_t K, size_t MG> |
rmint< K, MG > | operator% (const rmint< K, MG > &, const rmint< K, MG > &) |
|
template<size_t K, size_t MG, typename T > |
std::enable_if< std::is_arithmetic< T >::value, rmint< K, MG > >::type | operator% (const rmint< K, MG > &, const T &) |
|
template<size_t K, size_t MG> |
void | div (rmint< K, MG > &, const rmint< K, MG > &, const rmint< K, MG > &) |
|
template<size_t K, size_t MG> |
void | div (rmint< K, MG > &, const rmint< K, MG > &) |
|
template<size_t K, size_t MG, typename T > |
std::enable_if< std::is_arithmetic< T >::value, void >::type | div (rmint< K, MG > &, const rmint< K, MG > &, const T &) |
|
template<size_t K, size_t MG, typename T > |
std::enable_if< std::is_arithmetic< T >::value, void >::type | div (rmint< K, MG > &, const T &) |
|
template<size_t K, size_t MG> |
void | mod (rmint< K, MG > &, const rmint< K, MG > &, const rmint< K, MG > &) |
|
template<size_t K, size_t MG> |
void | mod (rmint< K, MG > &, const rmint< K, MG > &) |
|
template<size_t K, size_t MG, typename T > |
std::enable_if< std::is_arithmetic< T >::value, void >::type | mod (rmint< K, MG > &, const rmint< K, MG > &, const T &) |
|
template<size_t K, size_t MG, typename T > |
std::enable_if< std::is_arithmetic< T >::value, void >::type | mod (rmint< K, MG > &, const T &) |
|
template<size_t K, size_t MG> |
bool | is_quadratic_residue (const rmint< K, MG > &a) |
|
template<size_t K, size_t MG> |
void | square_root (rmint< K, MG > &r, const rmint< K, MG > &a) |
|
template<size_t K> |
rmint< K, MGA > & | addmul (rmint< K, MGA > &, const rmint< K, MGA > &, const rmint< K, MGA > &) |
|
template<size_t K> |
void | exp (rmint< K, MG_ACTIVE > &, const rmint< K, MG_ACTIVE > &, const UDItype &) |
|
template<size_t K> |
void | exp (rmint< K, MG_ACTIVE > &, const rmint< K, MG_ACTIVE > &, const ruint< K > &) |
|
template<size_t K> |
rmint< K, MG_ACTIVE > & | inv (rmint< K, MG_ACTIVE > &a, const rmint< K, MG_ACTIVE > &b) |
|
template<size_t K> |
rmint< K, MG_ACTIVE > & | inv (rmint< K, MG_ACTIVE > &a) |
|
template<size_t K, typename T > |
std::enable_if< std::is_arithmetic< T >::value, rmint< K, MG_ACTIVE > & >::type | inv (rmint< K, MG_ACTIVE > &a, const T &b) |
|
template<size_t K> |
ruint< K > & | arazi_qi (ruint< K > &u, const ruint< K > &a) |
|
template<> |
ruint< 6 > & | arazi_qi (ruint< 6 > &u, const ruint< 6 > &a) |
|
template<size_t K, typename T > |
std::enable_if< std::is_arithmetic< T >::value, void >::type | mul (rmint< K, MG_ACTIVE > &a, const rmint< K, MG_ACTIVE > &b, const T &c) |
|
template<size_t K, typename T > |
std::enable_if< std::is_arithmetic< T >::value, void >::type | mul (rmint< K, MG_ACTIVE > &a, const T &b) |
|
template<size_t K> |
rmint< K, MGA > & | to_mg (rmint< K, MGA > &a, const rmint< K, MGA > &b) |
|
template<size_t K> |
rmint< K, MGA > & | to_mg (rmint< K, MGA > &a) |
|
template<size_t K> |
rmint< K, MGA > & | reduction (rmint< K, MGA > &t, const ruint< K+1 > &c) |
|
template<size_t K> |
rmint< K, MGA > & | reduction (rmint< K, MGA > &t, const ruint< K > &c) |
|
template<size_t K> |
rmint< K, MGA > & | reduction (rmint< K, MGA > &t, const rmint< K, MGA > &c) |
|
template<size_t K> |
rmint< K, MGA > & | reduction (rmint< K, MGA > &t) |
|
template<size_t K> |
ruint< K > | get_ruint (const rmint< K, MGA > &a) |
|
template<size_t K> |
rmint< K, MGA > & | get_ready (rmint< K, MGA > &a) |
|
template<size_t K, size_t MG> |
void | reset (rmint< K, MG > &a) |
|
template<size_t K, size_t MG> |
void | copy (rmint< K, MG > &a, const rmint< K, MG > &b) |
|
template<size_t K, size_t MG> |
rmint< K, MG > & | operator*= (rmint< K, MG > &, const rmint< K, MG > &) |
|
template<size_t K, size_t MG> |
rmint< K, MG > | operator* (const rmint< K, MG > &, const rmint< K, MG > &) |
|
template<size_t K, size_t MG> |
MG const T const rmint< K, MG > &void | mul (rmint< K, MG > &, const rmint< K, MG > &, const rmint< K, MG > &) |
|
template<size_t K, size_t MG> |
void | mul (rmint< K, MG > &, const rmint< K, MG > &) |
|
template<size_t K, size_t MG> |
void | square (rmint< K, MG > &a, const rmint< K, MG > &b) |
|
template<size_t K, size_t MG> |
void | square (rmint< K, MG > &a) |
|
template<size_t K, size_t MG> |
void | mul (rmint< K, MG > &a, const rmint< K, MG > &b, const rmint< K, MG > &c) |
|
template<size_t K, size_t MG> |
rmint< K, MG > | operator- (const rmint< K, MG > &) |
|
template<size_t K, size_t MG> |
rmint< K, MG > & | neg (rmint< K, MG > &, const rmint< K, MG > &) |
|
template<size_t K, size_t MG> |
rmint< K, MG > & | neg (rmint< K, MG > &) |
|
template<size_t K, size_t MG> |
void | rand (rmint< K, MG > &a) |
|
template<size_t K, size_t MG> |
rmint< K, MG > & | operator-- (rmint< K, MG > &) |
|
template<size_t K, size_t MG> |
rmint< K, MG > | operator-- (rmint< K, MG > &, int) |
|
template<size_t K, size_t MG> |
rmint< K, MG > & | operator-= (rmint< K, MG > &, const rmint< K, MG > &) |
|
template<size_t K, size_t MG> |
rmint< K, MG > | operator- (const rmint< K, MG > &, const rmint< K, MG > &) |
|
template<size_t K, size_t MG> |
MG const T const rmint< K, MG > &rmint< K, MG > & | sub (rmint< K, MG > &, const rmint< K, MG > &, const rmint< K, MG > &) |
|
template<size_t K, size_t MG> |
rmint< K, MG > & | sub (rmint< K, MG > &, const rmint< K, MG > &) |
|
template<size_t K, size_t MG> |
rmint< K, MG > & | sub (rmint< K, MG > &a, const rmint< K, MG > &b, const rmint< K, MG > &c) |
|
return | sub (a, b, cp) |
|
return | sub (a, bp) |
|
template<size_t K> |
rint< K > & | operator*= (rint< K > &, const rint< K > &) |
|
template<size_t K, typename T > |
std::enable_if< std::is_arithmetic< T >::value, rint< K > & >::type | operator*= (rint< K > &, const T &) |
|
template<size_t K> |
rint< K > | operator* (const rint< K > &, const rint< K > &) |
|
template<size_t K, typename T > |
std::enable_if< std::is_arithmetic< T >::value, rint< K > >::type | operator* (const rint< K > &, const T &) |
|
template<size_t K, typename T > |
std::enable_if< std::is_arithmetic< T >::value, rint< K > >::type | operator* (const T &, const rint< K > &) |
|
template<size_t K> |
rint< K > & | mul (rint< K > &a, const rint< K > &b, const rint< K > &c) |
|
template<size_t K> |
rint< K > & | mul (rint< K > &a, const rint< K > &c) |
|
template<size_t K, typename T > |
std::enable_if< std::is_arithmetic< T >::value, rint< K > & >::type | mul (rint< K > &a, const rint< K > &b, const T &c) |
|
template<size_t K, typename T > |
std::enable_if< std::is_arithmetic< T >::value, rint< K > & >::type | mul (rint< K > &a, const T &c) |
|
template<size_t K> |
void | lmul (rint< K+1 > &, const rint< K > &, const rint< K > &) |
|
template<size_t K> |
void | addmul (rint< K > &, const rint< K > &, const rint< K > &) |
|
template<size_t K> |
void | lsquare (rint< K+1 > &a, const rint< K > &b) |
|
template<size_t K> |
rint< K > & | rand (rint< K > &a) |
|
template<size_t K> |
void | reset (rint< K > &a) |
|
template<size_t K> |
void | copy (rint< K > &a, const rint< K > &b) |
|
template<size_t K> |
rint< K > & | operator-- (rint< K > &) |
|
template<size_t K> |
rint< K > | operator-- (rint< K > &, int) |
|
template<size_t K> |
rint< K > & | operator-= (rint< K > &, const rint< K > &) |
|
template<size_t K, typename T > |
std::enable_if< std::is_unsigned< T >::value, rint< K > & >::type | operator-= (rint< K > &, const T &) |
|
template<size_t K, typename T > |
std::enable_if< std::is_signed< T >::value, rint< K > & >::type | operator-= (rint< K > &, const T &) |
|
template<size_t K> |
rint< K > | operator- (const rint< K > &, const rint< K > &) |
|
template<size_t K, typename T > |
std::enable_if< std::is_unsigned< T >::value, rint< K > >::type | operator- (const rint< K > &, const T &) |
|
template<size_t K, typename T > |
std::enable_if< std::is_unsigned< T >::value, rint< K > >::type | operator- (const T &, const rint< K > &) |
|
template<size_t K, typename T > |
std::enable_if< std::is_signed< T >::value, rint< K > >::type | operator- (const rint< K > &, const T &) |
|
template<size_t K, typename T > |
std::enable_if< std::is_signed< T >::value, rint< K > >::type | operator- (const T &, const rint< K > &) |
|
template<size_t K> |
void | sub (bool &r, rint< K > &a, const rint< K > &b, const rint< K > &c) |
|
template<size_t K> |
void | sub (bool &r, rint< K > &a, const rint< K > &c) |
|
template<size_t K> |
rint< K > & | sub (rint< K > &a, const rint< K > &b, const rint< K > &c) |
|
template<size_t K> |
rint< K > & | sub (rint< K > &a, const rint< K > &c) |
|
template<size_t K, typename T > |
std::enable_if< std::is_arithmetic< T >::value, void >::type | sub (bool &r, rint< K > &a, const rint< K > &b, const T &c) |
|
template<size_t K, typename T > |
std::enable_if< std::is_arithmetic< T >::value, void >::type | sub (bool &r, rint< K > &a, const T &c) |
|
template<size_t K, typename T > |
std::enable_if< std::is_arithmetic< T >::value, void >::type | sub (rint< K > &a, const rint< K > &b, const T &c) |
|
template<size_t K, typename T > |
std::enable_if< std::is_arithmetic< T >::value, void >::type | sub (rint< K > &a, const T &c) |
|
template<size_t K> |
void | sub_1 (bool &r, rint< K > &a, const rint< K > &b) |
|
template<size_t K> |
void | sub_1 (bool &r, rint< K > &a) |
|
template<size_t K> |
void | sub_1 (rint< K > &a, const rint< K > &b) |
|
template<size_t K> |
void | sub_1 (rint< K > &a) |
|
template<size_t K> |
ruint< K > & | operator++ (ruint< K > &) |
|
template<size_t K> |
ruint< K > | operator++ (ruint< K > &, int) |
|
template<size_t K> |
ruint< K > & | operator+= (ruint< K > &, const ruint< K > &) |
|
template<size_t K, typename T > |
std::enable_if< std::is_unsigned< T >::value, ruint< K > & >::type | operator+= (ruint< K > &, const T &) |
|
template<size_t K, typename T > |
std::enable_if< std::is_signed< T >::value, ruint< K > & >::type | operator+= (ruint< K > &, const T &) |
|
template<size_t K> |
ruint< K > | operator+ (const ruint< K > &, const ruint< K > &) |
|
template<size_t K, typename T > |
std::enable_if< std::is_unsigned< T >::value, ruint< K > >::type | operator+ (const ruint< K > &, const T &) |
|
template<size_t K, typename T > |
std::enable_if< std::is_unsigned< T >::value, ruint< K > >::type | operator+ (const T &, const ruint< K > &) |
|
template<size_t K, typename T > |
std::enable_if< std::is_signed< T >::value, ruint< K > >::type | operator+ (const ruint< K > &, const T &) |
|
template<size_t K, typename T > |
std::enable_if< std::is_signed< T >::value, ruint< K > >::type | operator+ (const T &, const ruint< K > &) |
|
template<size_t K> |
void | add (bool &r, ruint< K > &a, const ruint< K > &b, const ruint< K > &c) |
|
template<size_t K> |
void | add (bool &r, ruint< K > &a, const ruint< K > &c) |
|
template<size_t K> |
void | add (ruint< K > &a, const ruint< K > &b, const ruint< K > &c) |
|
template<size_t K> |
void | add (ruint< K > &a, const ruint< K > &c) |
|
template<size_t K, typename T > |
std::enable_if< std::is_arithmetic< T >::value, void >::type | add (bool &r, ruint< K > &a, const ruint< K > &b, const T &c) |
|
template<size_t K, typename T > |
std::enable_if< std::is_arithmetic< T >::value, void >::type | add (bool &r, ruint< K > &a, const T &c) |
|
template<size_t K, typename T > |
std::enable_if< std::is_arithmetic< T >::value, void >::type | add (ruint< K > &a, const ruint< K > &b, const T &c) |
|
template<size_t K, typename T > |
std::enable_if< std::is_arithmetic< T >::value, void >::type | add (ruint< K > &a, const T &c) |
|
template<size_t K> |
void | add_1 (bool &r, ruint< K > &a, const ruint< K > &b) |
|
template<size_t K> |
void | add_1 (bool &r, ruint< K > &a) |
|
template<size_t K> |
void | add_1 (ruint< K > &a, const ruint< K > &b) |
|
template<size_t K> |
void | add_1 (ruint< K > &a) |
|
template<size_t K> |
void | add_wc (bool &r, ruint< K > &a, const ruint< K > &b, const ruint< K > &c, const bool &cy) |
|
template<size_t K> |
void | add_wc (bool &r, ruint< K > &a, const ruint< K > &c, const bool &cy) |
|
template<size_t K> |
void | add_wc (ruint< K > &a, const ruint< K > &b, const ruint< K > &c, const bool &cy) |
|
template<size_t K> |
void | add_wc (ruint< K > &a, const ruint< K > &c, const bool &cy) |
|
template<> |
void | add (bool &r, ruint< 6+1 > &a, const ruint< 6+1 > &b, const ruint< 6+1 > &c) |
|
template<> |
void | add (bool &r, ruint< 6 > &a, const ruint< 6 > &b, const ruint< 6 > &c) |
|
template<> |
void | add (bool &r, ruint< 6+1 > &a, const ruint< 6+1 > &b) |
|
template<> |
void | add (bool &r, ruint< 6 > &a, const ruint< 6 > &b) |
|
template<> |
void | add (ruint< 6+1 > &a, const ruint< 6+1 > &b, const ruint< 6+1 > &c) |
|
template<> |
void | add (ruint< 6 > &a, const ruint< 6 > &b, const ruint< 6 > &c) |
|
template<> |
void | add (ruint< 6+1 > &a, const ruint< 6+1 > &b) |
|
template<> |
void | add (ruint< 6 > &a, const ruint< 6 > &b) |
|
template<typename T > |
std::enable_if< std::is_arithmetic< T >::value, void >::type | add (bool &r, ruint< 6+1 > &a, const ruint< 6+1 > &b, const T &c) |
|
template<typename T > |
std::enable_if< std::is_arithmetic< T >::value, void >::type | add (bool &r, ruint< 6 > &a, const ruint< 6 > &b, const T &c) |
|
template<typename T > |
std::enable_if< std::is_arithmetic< T >::value, void >::type | add (bool &r, ruint< 6+1 > &a, const T &b) |
|
template<typename T > |
std::enable_if< std::is_arithmetic< T >::value, void >::type | add (bool &r, ruint< 6 > &a, const T &b) |
|
template<> |
void | add_1 (bool &r, ruint< 6+1 > &a, const ruint< 6+1 > &b) |
|
template<> |
void | add_1 (bool &r, ruint< 6 > &a, const ruint< 6 > &b) |
|
template<> |
void | add_1 (bool &r, ruint< 6+1 > &a) |
|
template<> |
void | add_1 (bool &r, ruint< 6 > &a) |
|
template<> |
void | add_1 (ruint< 6+1 > &a, const ruint< 6+1 > &b) |
|
template<> |
void | add_1 (ruint< 6 > &a, const ruint< 6 > &b) |
|
template<> |
void | add_1 (ruint< 6+1 > &a) |
|
template<> |
void | add_1 (ruint< 6 > &a) |
|
template<> |
void | add_wc (bool &r, ruint< 6+1 > &a, const ruint< 6+1 > &b, const ruint< 6+1 > &c, const bool &cy) |
|
template<> |
void | add_wc (bool &r, ruint< 6 > &a, const ruint< 6 > &b, const ruint< 6 > &c, const bool &cy) |
|
template<> |
void | add_wc (bool &r, ruint< 6+1 > &a, const ruint< 6+1 > &b, const bool &cy) |
|
template<> |
void | add_wc (bool &r, ruint< 6 > &a, const ruint< 6 > &b, const bool &cy) |
|
template<> |
void | add_wc (ruint< 6+1 > &a, const ruint< 6+1 > &b, const ruint< 6+1 > &c, const bool &cy) |
|
template<> |
void | add_wc (ruint< 6 > &a, const ruint< 6 > &b, const ruint< 6 > &c, const bool &cy) |
|
template<> |
void | add_wc (ruint< 6+1 > &a, const ruint< 6+1 > &b, const bool &cy) |
|
template<> |
void | add_wc (ruint< 6 > &a, const ruint< 6 > &b, const bool &cy) |
|
template<size_t K> |
void | laddmul (bool &r, ruint< K+1 > &a, const ruint< K > &b, const ruint< K > &c, const ruint< K > &d) |
|
template<size_t K> |
void | laddmul (bool &r, ruint< K > &ah, ruint< K > &al, const ruint< K > &b, const ruint< K > &c, const ruint< K > &d) |
|
template<size_t K> |
void | laddmul (ruint< K+1 > &a, const ruint< K > &b, const ruint< K > &c, const ruint< K > &d) |
|
template<size_t K> |
void | laddmul (ruint< K > &ah, ruint< K > &al, const ruint< K > &b, const ruint< K > &c, const ruint< K > &d) |
|
template<size_t K> |
void | laddmul (bool &r, ruint< K+1 > &a, const ruint< K > &b, const ruint< K > &c, const ruint< K+1 > &d) |
|
template<size_t K> |
void | laddmul (bool &r, ruint< K > &ah, ruint< K > &al, const ruint< K > &b, const ruint< K > &c, const ruint< K+1 > &d) |
|
template<size_t K> |
void | addmul (ruint< K > &a, const ruint< K > &b, const ruint< K > &c) |
|
template<size_t K> |
void | addmul (ruint< K > &a, const ruint< K > &b, const UDItype &c) |
|
template<> |
void | laddmul (bool &r, ruint< 6 > &ah, ruint< 6 > &al, const ruint< 6 > &b, const ruint< 6 > &c, const ruint< 6 > &d) |
|
template<> |
void | laddmul (ruint< 6 > &ah, ruint< 6 > &al, const ruint< 6 > &b, const ruint< 6 > &c, const ruint< 6 > &d) |
|
template<> |
void | laddmul (bool &r, ruint< 6 > &ah, ruint< 6 > &al, const ruint< 6 > &b, const ruint< 6 > &c, const ruint< 6+1 > &d) |
|
template<> |
void | addmul (ruint< 6 > &a, const ruint< 6 > &b, const ruint< 6 > &c) |
|
template<size_t K> |
bool | operator== (const ruint< K > &, const ruint< K > &) |
|
template<size_t K, typename T > |
std::enable_if< std::is_arithmetic< T >::value, bool >::type | operator== (const ruint< K > &, const T &) |
|
template<size_t K, typename T > |
std::enable_if< std::is_arithmetic< T >::value, bool >::type | operator== (const T &, const ruint< K > &) |
|
template<size_t K> |
bool | operator!= (const ruint< K > &, const ruint< K > &) |
|
template<size_t K, typename T > |
std::enable_if< std::is_arithmetic< T >::value, bool >::type | operator!= (const ruint< K > &, const T &) |
|
template<size_t K, typename T > |
std::enable_if< std::is_arithmetic< T >::value, bool >::type | operator!= (const T &, const ruint< K > &) |
|
template<size_t K> |
bool | operator> (const ruint< K > &, const ruint< K > &) |
|
template<size_t K, typename T > |
std::enable_if< std::is_arithmetic< T >::value, bool >::type | operator> (const ruint< K > &, const T &) |
|
template<size_t K, typename T > |
std::enable_if< std::is_arithmetic< T >::value, bool >::type | operator> (const T &, const ruint< K > &) |
|
template<size_t K> |
bool | operator>= (const ruint< K > &, const ruint< K > &) |
|
template<size_t K, typename T > |
std::enable_if< std::is_arithmetic< T >::value, bool >::type | operator>= (const ruint< K > &, const T &) |
|
template<size_t K, typename T > |
std::enable_if< std::is_arithmetic< T >::value, bool >::type | operator>= (const T &, const ruint< K > &) |
|
template<size_t K> |
bool | operator< (const ruint< K > &, const ruint< K > &) |
|
template<size_t K, typename T > |
std::enable_if< std::is_arithmetic< T >::value, bool >::type | operator< (const ruint< K > &, const T &) |
|
template<size_t K, typename T > |
std::enable_if< std::is_arithmetic< T >::value, bool >::type | operator< (const T &, const ruint< K > &) |
|
template<size_t K> |
bool | operator<= (const ruint< K > &, const ruint< K > &) |
|
template<size_t K, typename T > |
std::enable_if< std::is_arithmetic< T >::value, bool >::type | operator<= (const ruint< K > &, const T &) |
|
template<size_t K, typename T > |
std::enable_if< std::is_arithmetic< T >::value, bool >::type | operator<= (const T &, const ruint< K > &) |
|
template<size_t K> |
int | cmp (const ruint< K > &a, const ruint< K > &b) |
|
template<size_t K, typename T > |
std::enable_if< std::is_unsigned< T >::value, int >::type | cmp (const ruint< K > &a, const T &b) |
|
template<size_t K, typename T > |
std::enable_if< std::is_signed< T >::value, int >::type | cmp (const ruint< K > &a, const T &b) |
|
template<> |
int | cmp (const ruint< 6 > &a, const ruint< 6 > &b) |
|
template<typename T > |
std::enable_if< std::is_unsigned< T >::value, int >::type | cmp (const ruint< 6 > &a, const T &b) |
|
template<typename T > |
std::enable_if< std::is_signed< T >::value, int >::type | cmp (const ruint< 6 > &a, const T &b) |
|
template<size_t K> |
ruint< K > & | mpz_to_ruint (ruint< K > &, const mpz_class &) |
|
template<size_t K> |
mpz_class & | ruint_to_mpz (mpz_class &, const ruint< K > &) |
|
template<size_t K> |
mpz_ptr | ruint_to_mpz_t (mpz_ptr a, const ruint< K > &b) |
|
template<size_t K> |
ruint< K > & | mpz_t_to_ruint (ruint< K > &a, mpz_srcptr b) |
|
template<size_t K> |
std::ostream & | operator<< (std::ostream &, const ruint< K > &) |
|
template<size_t K> |
std::istream & | operator>> (std::istream &, ruint< K > &) |
|
template<> |
std::ostream & | operator<< (std::ostream &out, const ruint< 6 > &a) |
|
template<size_t K> |
std::ostream & | display_dec (std::ostream &out, const ruint< K > &a) |
|
template<size_t K> |
std::ostream & | display_hex (std::ostream &out, const ruint< K > &a) |
|
template<> |
std::ostream & | display_hex (std::ostream &out, const ruint< 6 > &a) |
|
template<size_t K> |
std::ostream & | write_raw (std::ostream &out, const ruint< K > &a) |
|
template<size_t K> |
std::istream & | read_raw (std::istream &is, ruint< K > &a) |
|
template<size_t K> |
ruint< K > & | operator%= (ruint< K > &, const ruint< K > &) |
|
template<size_t K, typename T > |
std::enable_if< std::is_arithmetic< T >::value, ruint< K > & >::type | operator%= (ruint< K > &, const T &) |
|
template<size_t K> |
ruint< K > & | operator/= (ruint< K > &, const ruint< K > &) |
|
template<size_t K, typename T > |
std::enable_if< std::is_unsigned< T >::value, ruint< K > & >::type | operator/= (ruint< K > &, const T &) |
|
template<size_t K, typename T > |
std::enable_if< std::is_signed< T >::value, ruint< K > & >::type | operator/= (ruint< K > &, const T &) |
|
template<size_t K> |
ruint< K > | operator% (const ruint< K > &, const ruint< K > &) |
|
template<size_t K, typename T > |
std::enable_if< std::is_arithmetic< T >::value, ruint< K > >::type | operator% (const ruint< K > &, const T &) |
|
template<size_t K> |
ruint< K > | operator/ (const ruint< K > &, const ruint< K > &) |
|
template<size_t K, typename T > |
std::enable_if< std::is_unsigned< T >::value, ruint< K > >::type | operator/ (const ruint< K > &, const T &) |
|
template<size_t K, typename T > |
std::enable_if< std::is_signed< T >::value, ruint< K > >::type | operator/ (const ruint< K > &, const T &) |
|
template<size_t K> |
void | div_3_2 (ruint< K > &q, ruint< K > &r1, ruint< K > &r0, const ruint< K > &a2, const ruint< K > &a1, const ruint< K > &a0, const ruint< K > &b1, const ruint< K > &b0) |
|
template<size_t K> |
void | div_2_1 (ruint< K > &q, ruint< K > &r, const ruint< K > &a1, const ruint< K > &a0, const ruint< K > &b) |
|
template<size_t K> |
void | div (ruint< K > &q, ruint< K > &r, const ruint< K > &a, const ruint< K > &b) |
|
template<size_t K, typename T > |
std::enable_if< std::is_arithmetic< T >::value, void >::type | div (ruint< K > &q, T &r, const ruint< K > &a, const T &b) |
|
template<size_t K> |
ruint< K > & | div_q (ruint< K > &q, const ruint< K > &a, const ruint< K > &b) |
|
template<size_t K, typename T > |
std::enable_if< std::is_arithmetic< T >::value, ruint< K > & >::type | div_q (ruint< K > &q, const ruint< K > &a, const T &b) |
|
template<size_t K> |
ruint< K > & | div_r (ruint< K > &r, const ruint< K > &a, const ruint< K > &b) |
|
template<size_t K, typename T > |
std::enable_if< std::is_arithmetic< T >::value, T & >::type | div_r (T &r, const ruint< K > &a, const T &b) |
|
template<> |
void | div_3_2 (ruint< 6 > &q, ruint< 6 > &r1, ruint< 6 > &r0, const ruint< 6 > &a2, const ruint< 6 > &a1, const ruint< 6 > &a0, const ruint< 6 > &b1, const ruint< 6 > &b0) |
|
template<> |
void | div_2_1 (ruint< 6 > &q, ruint< 6 > &r, const ruint< 6 > &ah, const ruint< 6 > &al, const ruint< 6 > &b) |
|
void | udiv_qrnd (limb &q, limb &r, const limb &a, const limb &b) |
|
template<> |
void | div (ruint< 6 > &q, ruint< 6 > &r, const ruint< 6 > &a, const ruint< 6 > &b) |
|
template<size_t K> |
void | exp_mod (ruint< K > &a, const ruint< K > &b, const ruint< K > &c, const ruint< K > &n) |
|
template<size_t K, typename T > |
std::enable_if< std::is_unsigned< T >::value, void >::type | exp_mod (ruint< K > &a, const ruint< K > &b, const T &c, const ruint< K > &n) |
|
template<size_t K> |
ruint< K > | operator~ (const ruint< K > &c) |
|
template<size_t K> |
ruint< K > | operator- (const ruint< K > &c) |
|
template<size_t K> |
ruint< K > & | neg (ruint< K > &, const ruint< K > &) |
|
template<size_t K> |
ruint< K > & | neg (ruint< K > &) |
|
template<size_t K> |
ruint< K > & | operator|= (ruint< K > &b, const ruint< K > &c) |
|
template<size_t K> |
ruint< K > & | operator^= (ruint< K > &b, const ruint< K > &c) |
|
template<size_t K> |
ruint< K > & | operator&= (ruint< K > &b, const ruint< K > &c) |
|
template<size_t K, typename T > |
std::enable_if< std::is_arithmetic< T >::value, ruint< K > & >::type | operator|= (ruint< K > &b, const T &c) |
|
template<size_t K, typename T > |
std::enable_if< std::is_arithmetic< T >::value, ruint< K > & >::type | operator^= (ruint< K > &b, const T &c) |
|
template<size_t K, typename T > |
std::enable_if< std::is_arithmetic< T >::value, ruint< K > & >::type | operator&= (ruint< K > &b, const T &c) |
|
template<size_t K> |
ruint< K > | operator| (const ruint< K > &b, const ruint< K > &c) |
|
template<size_t K> |
ruint< K > | operator^ (const ruint< K > &b, const ruint< K > &c) |
|
template<size_t K> |
ruint< K > | operator& (const ruint< K > &b, const ruint< K > &c) |
|
template<size_t K, typename T > |
std::enable_if< std::is_arithmetic< T >::value, ruint< K > >::type | operator| (const ruint< K > &b, const T &c) |
|
template<size_t K, typename T > |
std::enable_if< std::is_arithmetic< T >::value, ruint< K > >::type | operator^ (const ruint< K > &b, const T &c) |
|
template<size_t K, typename T > |
std::enable_if< std::is_arithmetic< T >::value, T >::type | operator& (const ruint< K > &b, const T &c) |
|
template<size_t K> |
ruint< K > & | max_pow_two (ruint< K > &a) |
|
template<size_t K> |
bool | highest_bit (const ruint< K > &a) |
|
template<size_t K> |
bool | lowest_bit (const ruint< K > &a) |
|
template<size_t K> |
void | set_highest_bit (ruint< K > &a) |
|
template<size_t K> |
void | set_lowest_bit (ruint< K > &a) |
|
template<size_t K> |
void | set_highest_word (ruint< K > &a, const limb w) |
|
template<size_t K> |
void | set_lowest_word (ruint< K > &a, const limb w) |
|
template<> |
ruint< 6 > | operator~ (const ruint< 6 > &c) |
|
template<> |
ruint< 6 > & | neg (ruint< 6 > &r, const ruint< 6 > &c) |
|
template<> |
ruint< 6 > & | operator|= (ruint< 6 > &b, const ruint< 6 > &c) |
|
template<typename T > |
std::enable_if< std::is_arithmetic< T >::value, ruint< 6 > & >::type | operator|= (ruint< 6 > &b, const T &c) |
|
template<> |
ruint< 6 > & | operator^= (ruint< 6 > &b, const ruint< 6 > &c) |
|
template<typename T > |
std::enable_if< std::is_arithmetic< T >::value, ruint< 6 > & >::type | operator^= (ruint< 6 > &b, const T &c) |
|
template<> |
ruint< 6 > & | operator&= (ruint< 6 > &b, const ruint< 6 > &c) |
|
template<typename T > |
std::enable_if< std::is_arithmetic< T >::value, ruint< 6 > & >::type | operator&= (ruint< 6 > &b, const T &c) |
|
template<> |
ruint< 6 > & | max_pow_two (ruint< 6 > &a) |
|
template<> |
bool | highest_bit (const ruint< 6 > &a) |
|
template<> |
bool | lowest_bit (const ruint< 6 > &a) |
|
template<> |
void | set_highest_bit (ruint< 6 > &a) |
|
template<> |
void | set_lowest_bit (ruint< 6 > &a) |
|
template<> |
void | set_highest_word (ruint< 6 > &a, const limb w) |
|
template<> |
void | set_lowest_word (ruint< 6 > &a, const limb w) |
|
template<size_t K> |
ruint< K > & | gcd (ruint< K > &a, const ruint< K > &b, const ruint< K > &c) |
|
template<size_t K> |
ruint< K > | gcd (const ruint< K > &b, const ruint< K > &c) |
|
template<size_t K> |
void | bezout_mod (ruint< K > &x, ruint< K > &y, const ruint< K > &c, const ruint< K > &d) |
|
template<size_t K> |
ruint< K > & | inv_mod (ruint< K > &a, const ruint< K > &b, const ruint< K > &c) |
|
template<size_t K> |
void | reset (ruint< K > &a) |
|
template<size_t K> |
ruint< K > & | fill_with_1 (ruint< K > &a) |
|
template<size_t K> |
void | copy (ruint< K > &a, const ruint< K > &b) |
|
template<size_t K> |
void | pointers_list (limb **p, const ruint< K > &a) |
|
template<size_t K> |
void | set_limb (ruint< K > &a, const limb &b, unsigned int index) |
|
template<size_t K> |
limb | ms_limb (const ruint< K > &a) |
|
template<size_t K> |
limb | get_limb (const ruint< K > &a, unsigned int index) |
|
template<size_t K> |
const limb * | get_limb_p (const ruint< K > &a, unsigned int index) |
|
template<size_t K> |
const limb * | begin (const ruint< K > &a) |
|
template<> |
void | reset (ruint< 6 > &a) |
|
template<> |
ruint< 6 > & | fill_with_1 (ruint< 6 > &a) |
|
template<> |
void | copy (ruint< 6 > &a, const ruint< 6 > &b) |
|
template<> |
void | pointers_list (limb **tab, const ruint< 6 > &a) |
|
template<> |
void | set_limb (ruint< 6 > &a, const limb &b, unsigned int index) |
|
template<> |
limb | ms_limb (const ruint< 6 > &a) |
|
template<> |
limb | get_limb (const ruint< 6 > &a, unsigned int) |
|
template<> |
const limb * | get_limb_p (const ruint< 6 > &a, unsigned int) |
|
template<> |
const limb * | begin (const ruint< 6 > &a) |
|
template<size_t K> |
ruint< K > & | operator*= (ruint< K > &, const ruint< K > &) |
|
template<size_t K, typename T > |
std::enable_if< std::is_unsigned< T >::value, ruint< K > & >::type | operator*= (ruint< K > &, const T &) |
|
template<size_t K, typename T > |
std::enable_if< std::is_signed< T >::value, ruint< K > & >::type | operator*= (ruint< K > &, const T &) |
|
template<size_t K> |
ruint< K > | operator* (const ruint< K > &, const ruint< K > &) |
|
template<size_t K, typename T > |
std::enable_if< std::is_unsigned< T >::value, ruint< K > >::type | operator* (const ruint< K > &, const T &) |
|
template<size_t K, typename T > |
std::enable_if< std::is_unsigned< T >::value, ruint< K > >::type | operator* (const T &, const ruint< K > &) |
|
template<size_t K, typename T > |
std::enable_if< std::is_signed< T >::value, ruint< K > >::type | operator* (const ruint< K > &, const T &) |
|
template<size_t K, typename T > |
std::enable_if< std::is_signed< T >::value, ruint< K > >::type | operator* (const T &, const ruint< K > &) |
|
template<size_t K> |
void | lmul_naive (ruint< K+1 > &a, const ruint< K > &b, const ruint< K > &c) |
|
template<size_t K> |
void | lmul_naive (ruint< K > &ah, ruint< K > &al, const ruint< K > &b, const ruint< K > &c) |
|
template<size_t K> |
void | lmul_kara (ruint< K+1 > &a, const ruint< K > &b, const ruint< K > &c) |
|
template<size_t K> |
void | lmul_kara (ruint< K > &ah, ruint< K > &al, const ruint< K > &b, const ruint< K > &c) |
|
template<size_t K> |
void | lmul (ruint< K+1 > &a, const ruint< K > &b, const ruint< K > &c) |
|
template<size_t K> |
void | lmul (ruint< K > &ah, ruint< K > &al, const ruint< K > &b, const ruint< K > &c) |
|
template<size_t K, typename T > |
std::enable_if< std::is_arithmetic< T >::value, void >::type | lmul (ruint< K+1 > &a, const ruint< K > &b, const T &c) |
|
template<size_t K, typename T > |
std::enable_if< std::is_arithmetic< T >::value, void >::type | lmul (limb &ah, ruint< K > &al, const ruint< K > &b, const T &c) |
|
template<size_t K> |
ruint< K > & | mul (ruint< K > &a, const ruint< K > &b, const ruint< K > &c) |
|
template<size_t K> |
ruint< K > & | mul (ruint< K > &a, const ruint< K > &c) |
|
template<size_t K, typename T > |
std::enable_if< std::is_arithmetic< T >::value, ruint< K > & >::type | mul (ruint< K > &a, const ruint< K > &b, const T &c) |
|
template<size_t K, typename T > |
std::enable_if< std::is_arithmetic< T >::value, ruint< K > & >::type | mul (ruint< K > &a, const T &c) |
|
template<size_t K> |
ruint< K+1 > & | lsquare (ruint< K+1 > &a, const ruint< K > &b) |
|
template<size_t K> |
ruint< K > & | square (ruint< K > &al, const ruint< K > &b) |
|
template<> |
void | lmul_naive (ruint< 6 > &ah, ruint< 6 > &al, const ruint< 6 > &b, const ruint< 6 > &c) |
|
template<> |
void | lmul_kara (ruint< 6 > &ah, ruint< 6 > &al, const ruint< 6 > &b, const ruint< 6 > &c) |
|
template<> |
void | lmul (ruint< 6 > &ah, ruint< 6 > &al, const ruint< 6 > &b, const ruint< 6 > &c) |
|
template<typename T > |
std::enable_if< std::is_arithmetic< T >::value, void >::type | lmul (limb &ret, ruint< 6 > &a, const ruint< 6 > &b, const T &c) |
|
template<> |
ruint< 6 > & | mul (ruint< 6 > &al, const ruint< 6 > &b, const ruint< 6 > &c) |
|
template<> |
ruint< 6 > & | mul (ruint< 6 > &al, const ruint< 6 > &c) |
|
template<> |
ruint< 6+1 > & | lsquare (ruint< 6+1 > &a, const ruint< 6 > &b) |
|
template<> |
ruint< 6 > & | square (ruint< 6 > &al, const ruint< 6 > &b) |
|
template<size_t K> |
ruint< K > & | rand (ruint< K > &a) |
|
void | srand (const limb s) |
|
template<> |
ruint< 6 > & | rand (ruint< 6 > &a) |
|
template<size_t K, typename T > |
ruint< K > | operator<< (const ruint< K > &, const T &) |
|
template<size_t K, typename T > |
ruint< K > | operator>> (const ruint< K > &, const T &) |
|
template<size_t K, typename T > |
ruint< K > & | operator<<= (ruint< K > &, const T &) |
|
template<size_t K, typename T > |
ruint< K > & | operator>>= (ruint< K > &, const T &) |
|
template<size_t K, typename T > |
ruint< K > & | left_shift (ruint< K > &a, const ruint< K > &b, const T &c) |
|
template<size_t K> |
ruint< K > & | left_shift_1 (bool &z, ruint< K > &a, const ruint< K > &b) |
|
template<size_t K> |
ruint< K > & | left_shift_1 (ruint< K > &a, const ruint< K > &b) |
|
template<size_t K, typename T > |
ruint< K > & | right_shift (ruint< K > &a, const ruint< K > &b, const T &c) |
|
template<size_t K> |
ruint< K > & | right_shift_1 (bool &z, ruint< K > &a, const ruint< K > &b) |
|
template<size_t K> |
ruint< K > & | right_shift_1 (ruint< K > &a, const ruint< K > &b) |
|
template<size_t K, typename T > |
void | left_shift (ruint< K+1 > &b, const ruint< K > &a, const T &m) |
|
template<typename T > |
ruint< 6 > & | left_shift (ruint< 6 > &b, const ruint< 6 > &a, const T &d) |
|
template<> |
ruint< 6 > & | left_shift_1 (bool &z, ruint< 6 > &b, const ruint< 6 > &a) |
|
template<typename T > |
ruint< 6 > & | right_shift (ruint< 6 > &b, const ruint< 6 > &a, const T &d) |
|
template<> |
ruint< 6 > & | right_shift_1 (bool &z, ruint< 6 > &b, const ruint< 6 > &a) |
|
template<size_t K> |
ruint< K > & | operator-- (ruint< K > &) |
|
template<size_t K> |
ruint< K > | operator-- (ruint< K > &, int) |
|
template<size_t K> |
ruint< K > & | operator-= (ruint< K > &, const ruint< K > &) |
|
template<size_t K, typename T > |
std::enable_if< std::is_unsigned< T >::value, ruint< K > & >::type | operator-= (ruint< K > &, const T &) |
|
template<size_t K, typename T > |
std::enable_if< std::is_signed< T >::value, ruint< K > & >::type | operator-= (ruint< K > &, const T &) |
|
template<size_t K> |
ruint< K > | operator- (const ruint< K > &, const ruint< K > &) |
|
template<size_t K, typename T > |
std::enable_if< std::is_unsigned< T >::value, ruint< K > >::type | operator- (const ruint< K > &, const T &) |
|
template<size_t K, typename T > |
std::enable_if< std::is_unsigned< T >::value, ruint< K > >::type | operator- (const T &, const ruint< K > &) |
|
template<size_t K, typename T > |
std::enable_if< std::is_signed< T >::value, ruint< K > >::type | operator- (const ruint< K > &, const T &) |
|
template<size_t K, typename T > |
std::enable_if< std::is_signed< T >::value, ruint< K > >::type | operator- (const T &, const ruint< K > &) |
|
template<size_t K> |
void | sub (bool &r, ruint< K > &a, const ruint< K > &b, const ruint< K > &c) |
|
template<size_t K> |
void | sub (bool &r, ruint< K > &a, const ruint< K > &c) |
|
template<size_t K> |
ruint< K > & | sub (ruint< K > &a, const ruint< K > &b, const ruint< K > &c) |
|
template<size_t K> |
ruint< K > & | sub (ruint< K > &a, const ruint< K > &c) |
|
template<size_t K, typename T > |
std::enable_if< std::is_arithmetic< T >::value, void >::type | sub (bool &r, ruint< K > &a, const ruint< K > &b, const T &c) |
|
template<size_t K, typename T > |
std::enable_if< std::is_arithmetic< T >::value, void >::type | sub (bool &r, ruint< K > &a, const T &c) |
|
template<size_t K, typename T > |
std::enable_if< std::is_arithmetic< T >::value, void >::type | sub (ruint< K > &a, const ruint< K > &b, const T &c) |
|
template<size_t K, typename T > |
std::enable_if< std::is_arithmetic< T >::value, void >::type | sub (ruint< K > &a, const T &c) |
|
template<size_t K> |
void | sub_1 (bool &r, ruint< K > &a, const ruint< K > &b) |
|
template<size_t K> |
void | sub_1 (bool &r, ruint< K > &a) |
|
template<size_t K> |
void | sub_1 (ruint< K > &a, const ruint< K > &b) |
|
template<size_t K> |
void | sub_1 (ruint< K > &a) |
|
template<size_t K> |
void | sub_wc (bool &r, ruint< K > &a, const ruint< K > &b, const ruint< K > &c, const bool &cy) |
|
template<size_t K> |
void | sub_wc (bool &r, ruint< K > &a, const ruint< K > &c, const bool &cy) |
|
template<size_t K> |
void | sub_wc (ruint< K > &a, const ruint< K > &b, const ruint< K > &c, const bool &cy) |
|
template<size_t K> |
void | sub_wc (ruint< K > &a, const ruint< K > &c, const bool &cy) |
|
template<> |
void | sub (bool &r, ruint< 6+1 > &a, const ruint< 6+1 > &b, const ruint< 6+1 > &c) |
|
template<> |
void | sub (bool &r, ruint< 6 > &a, const ruint< 6 > &b, const ruint< 6 > &c) |
|
template<> |
void | sub (bool &r, ruint< 6+1 > &a, const ruint< 6+1 > &b) |
|
template<> |
void | sub (bool &r, ruint< 6 > &a, const ruint< 6 > &b) |
|
template<> |
ruint< 6+1 > & | sub (ruint< 6+1 > &a, const ruint< 6+1 > &b, const ruint< 6+1 > &c) |
|
template<> |
ruint< 6 > & | sub (ruint< 6 > &a, const ruint< 6 > &b, const ruint< 6 > &c) |
|
template<> |
ruint< 6+1 > & | sub (ruint< 6+1 > &a, const ruint< 6+1 > &b) |
|
template<> |
ruint< 6 > & | sub (ruint< 6 > &a, const ruint< 6 > &b) |
|
template<typename T > |
std::enable_if< std::is_arithmetic< T >::value, void >::type | sub (bool &r, ruint< 6+1 > &a, const ruint< 6+1 > &b, const T &c) |
|
template<typename T > |
std::enable_if< std::is_arithmetic< T >::value, void >::type | sub (bool &r, ruint< 6 > &a, const ruint< 6 > &b, const T &c) |
|
template<typename T > |
std::enable_if< std::is_arithmetic< T >::value, void >::type | sub (bool &r, ruint< 6+1 > &a, const T &b) |
|
template<typename T > |
std::enable_if< std::is_arithmetic< T >::value, void >::type | sub (bool &r, ruint< 6 > &a, const T &b) |
|
template<typename T > |
std::enable_if< std::is_arithmetic< T >::value, void >::type | sub (ruint< 6+1 > &a, const ruint< 6+1 > &b, const T &c) |
|
template<typename T > |
std::enable_if< std::is_arithmetic< T >::value, void >::type | sub (ruint< 6 > &a, const ruint< 6 > &b, const T &c) |
|
template<typename T > |
std::enable_if< std::is_arithmetic< T >::value, void >::type | sub (ruint< 6+1 > &a, const T &b) |
|
template<typename T > |
std::enable_if< std::is_arithmetic< T >::value, void >::type | sub (ruint< 6 > &a, const T &b) |
|
template<> |
void | sub_1 (bool &r, ruint< 6+1 > &a, const ruint< 6+1 > &b) |
|
template<> |
void | sub_1 (bool &r, ruint< 6 > &a, const ruint< 6 > &b) |
|
template<> |
void | sub_1 (bool &r, ruint< 6+1 > &a) |
|
template<> |
void | sub_1 (bool &r, ruint< 6 > &a) |
|
template<> |
void | sub_1 (ruint< 6+1 > &a, const ruint< 6+1 > &b) |
|
template<> |
void | sub_1 (ruint< 6 > &a, const ruint< 6 > &b) |
|
template<> |
void | sub_1 (ruint< 6+1 > &a) |
|
template<> |
void | sub_1 (ruint< 6 > &a) |
|
template<> |
void | sub_wc (bool &r, ruint< 6+1 > &a, const ruint< 6+1 > &b, const ruint< 6+1 > &c, const bool &cy) |
|
template<> |
void | sub_wc (bool &r, ruint< 6 > &a, const ruint< 6 > &b, const ruint< 6 > &c, const bool &cy) |
|
template<> |
void | sub_wc (bool &r, ruint< 6+1 > &a, const ruint< 6+1 > &b, const bool &cy) |
|
template<> |
void | sub_wc (bool &r, ruint< 6 > &a, const ruint< 6 > &b, const bool &cy) |
|
template<> |
void | sub_wc (ruint< 6+1 > &a, const ruint< 6+1 > &b, const ruint< 6+1 > &c, const bool &cy) |
|
template<> |
void | sub_wc (ruint< 6 > &a, const ruint< 6 > &b, const ruint< 6 > &c, const bool &cy) |
|
template<> |
void | sub_wc (ruint< 6+1 > &a, const ruint< 6+1 > &b, const bool &cy) |
|
template<> |
void | sub_wc (ruint< 6 > &a, const ruint< 6 > &b, const bool &cy) |
|
template<size_t K> |
void | normalization (UDItype &d, const ruint< K > &b) |
|
template<size_t K> |
void | mod_n (ruint< K > &a, const ruint< K+1 > &b, const ruint< K > &n) |
|
template<size_t K> |
void | mod_n (ruint< K > &a, const ruint< K > &b, const ruint< K > &n) |
|
template<size_t K> |
void | mod_n (ruint< K > &a, const ruint< K > &n) |
|