#include "gmpint.h"
#include "arbint.h"
-#define TEST_CASES 100
+
using namespace IPDF;
int main(int argc, char ** argv)
{
- for (unsigned i = 0; i < TEST_CASES; ++i)
+ unsigned test_cases = (argc > 1) ? atoi(argv[1]) : 100;
+ for (unsigned i = 0; i < test_cases; ++i)
{
uint64_t a = rand();
{
arb_a *= b;
gmp_a *= b;
-
- Debug("Arbint - %s", arb_a.Str().c_str());
- Debug("Gmpint - %s", gmp_a.Str().c_str());
}
+ for (unsigned j = 0; j < 5; ++j)
+ {
+ arb_a += b;
+ gmp_a += b;
+ }
+
+ for (unsigned j = 0; j < 5; ++j)
+ {
+ arb_a /= b;
+ gmp_a /= b;
+ }
+
+
+ for (unsigned j = 0; j < 5; ++j)
+ {
+ arb_a -= b;
+ gmp_a -= b;
+ }
}
return 0;
}