Public Member Functions | |
CRingPhi () | |
CRingPhi (const CRingPhi &x) | |
~CRingPhi () | |
bool | set_startvalue (const unsigned int seed=1) |
void | set (const CRingPhi &x) |
void | pow_mod (const unsigned int i, const mpz_t M) |
void | fast_pow_mod (const unsigned int i, const mpz_t M) |
void | test_gcd (mpz_t x, const mpz_t M) |
Static Public Attributes | |
static const std::string | name = "phi" |
static const int | SieveIntervalSize = 2*3*5*7*11*13*17 |
Private Attributes | |
mpz_t | a |
Friends | |
class | CRingPhiPhase2 |
Definition at line 10 of file pollard_phi.cc.
CRingPhi::CRingPhi | ( | ) | [inline] |
Definition at line 17 of file pollard_phi.cc.
References a, and mpz_init().
CRingPhi::CRingPhi | ( | const CRingPhi & | x | ) | [inline] |
Definition at line 18 of file pollard_phi.cc.
References a, and mpz_init_set().
CRingPhi::~CRingPhi | ( | ) | [inline] |
Definition at line 19 of file pollard_phi.cc.
References a, and mpz_clear().
bool CRingPhi::set_startvalue | ( | const unsigned int | seed = 1 |
) | [inline] |
Definition at line 20 of file pollard_phi.cc.
References a, and mpz_set_ui().
void CRingPhi::set | ( | const CRingPhi & | x | ) | [inline] |
void CRingPhi::pow_mod | ( | const unsigned int | i, | |
const mpz_t | M | |||
) | [inline] |
Definition at line 22 of file pollard_phi.cc.
References a, and mpz_powm_ui().
void CRingPhi::fast_pow_mod | ( | const unsigned int | i, | |
const mpz_t | M | |||
) | [inline] |
Definition at line 23 of file pollard_phi.cc.
References a, and my_mpz_powm_ui().
void CRingPhi::test_gcd | ( | mpz_t | x, | |
const mpz_t | M | |||
) | [inline] |
Definition at line 24 of file pollard_phi.cc.
References a, mpz_gcd(), and mpz_sub_ui().
friend class CRingPhiPhase2 [friend] |
Definition at line 25 of file pollard_phi.cc.
mpz_t CRingPhi::a [private] |
Definition at line 13 of file pollard_phi.cc.
Referenced by CRingPhiPhase2::calc_EvalStartingPoint(), CRingPhi(), CRingPhiPhase2::CRingPhiPhase2(), fast_pow_mod(), pow_mod(), set(), set_startvalue(), test_gcd(), and ~CRingPhi().
const std::string CRingPhi::name = "phi" [static] |
Definition at line 15 of file pollard_phi.cc.
const int CRingPhi::SieveIntervalSize = 2*3*5*7*11*13*17 [static] |
Definition at line 16 of file pollard_phi.cc.