#include <sys/times.h>
#include "modulo.cc"
#include "polynomial.cc"
Go to the source code of this file.
Defines | |
#define | USER_GMP_WRAP |
Functions | |
double | difftimes (clock_t t1, clock_t t0) |
bool | do_check (const int maxk, const int anzPoints, const mpz_t m) |
bool | performance_check (const int maxk, const int anzPoints, const mpz_t m) |
int | main () |
Definition in file check_polynomial.cc.
#define USER_GMP_WRAP |
Definition at line 13 of file check_polynomial.cc.
double difftimes | ( | clock_t | t1, | |
clock_t | t0 | |||
) |
Definition at line 23 of file check_polynomial.cc.
Referenced by do_check(), performance_check(), and Cprocess_clients::process_data_stream().
bool do_check | ( | const int | maxk, | |
const int | anzPoints, | |||
const mpz_t | m | |||
) |
Definition at line 30 of file check_polynomial.cc.
References cerr, cout, difftimes(), endl(), polynomial::eval(), exit(), mpz_clear(), mpz_cmp(), mpz_init(), mpz_mod(), mpz_out_str(), mpz_rrandomb(), mpz_sizeinbase(), polynomial::multipoint_eval(), and Polynom.
Referenced by main().
int main | ( | ) |
Definition at line 147 of file check_polynomial.cc.
References cout, do_check(), endl(), mpz_add_ui(), mpz_clear(), mpz_init(), mpz_pow_ui(), mpz_set_str(), mpz_set_ui(), and performance_check().
bool performance_check | ( | const int | maxk, | |
const int | anzPoints, | |||
const mpz_t | m | |||
) |
Definition at line 107 of file check_polynomial.cc.
References cout, difftimes(), endl(), mpz_clear(), mpz_init(), mpz_mod(), mpz_rrandomb(), mpz_sizeinbase(), polynomial::multipoint_eval(), and Polynom.
Referenced by main().