/dports/databases/xtrabackup/boost_1_59_0/libs/multiprecision/test/ |
H A D | test_cpp_int.cpp | 69 boost::multiprecision::mpz_int a, b, c, d; 87 BOOST_CHECK_EQUAL(mpz_int(mpz_int(-a)+b).str(), test_type(test_type(-a1) + b1).str()); in t1() 88 BOOST_CHECK_EQUAL(mpz_int(mpz_int(-a)-b).str(), test_type(test_type(-a1) - b1).str()); in t1() 202 mpz_int r; in t2() 327 static mpz_int m = mpz_int(1) << std::numeric_limits<test_type>::digits; in t4() 328 mpz_int t(a); in t4() 349 mpz_int z1, z2; in t5() 511 a = generate_random<mpz_int>(1000); in test() 512 b = generate_random<mpz_int>(512); in test() 513 c = generate_random<mpz_int>(256); in test() [all …]
|
H A D | test_fixed_int.cpp | 61 mpz_int a = generate_random<mpz_int>(1000); in main() 62 mpz_int b = generate_random<mpz_int>(512); in main() 63 mpz_int c = generate_random<mpz_int>(256); in main() 64 mpz_int d = generate_random<mpz_int>(32); in main() 77 BOOST_CHECK_EQUAL(mpz_int(a+b).str(), packed_type(a1 + b1).str()); in main() 78 BOOST_CHECK_EQUAL(mpz_int(a-b).str(), packed_type(a1 - b1).str()); in main() 79 BOOST_CHECK_EQUAL(mpz_int(mpz_int(-a)+b).str(), packed_type(packed_type(-a1) + b1).str()); in main() 80 BOOST_CHECK_EQUAL(mpz_int(mpz_int(-a)-b).str(), packed_type(packed_type(-a1) - b1).str()); in main() 94 BOOST_CHECK_EQUAL(mpz_int(a|b).str(), packed_type(a1 | b1).str()); in main() 143 std::cout << "-a + b = " << mpz_int(-a)+b << std::endl; in main() [all …]
|
H A D | test_gmp_conversions.cpp | 74 mpz_int iz(2); in main() 85 BOOST_TEST(mpz_int(mpf) == 2); in main() 86 BOOST_TEST(mpz_int(mpz) == 2); in main() 87 BOOST_TEST(mpz_int(mpq) == 2); in main() 89 iz = mpz_int(mpf); // explicit conversion only in main() 100 BOOST_TEST(mpz_int(f0) == 2); in main() 101 BOOST_TEST(mpz_int(f50) == 2); in main() 103 BOOST_TEST(mpz_int(rat) == 2); in main() 105 iz = static_cast<mpz_int>(f0); in main() 108 iz = static_cast<mpz_int>(f50); in main() [all …]
|
/dports/databases/percona57-pam-for-mysql/boost_1_59_0/libs/multiprecision/test/ |
H A D | test_cpp_int.cpp | 69 boost::multiprecision::mpz_int a, b, c, d; 87 BOOST_CHECK_EQUAL(mpz_int(mpz_int(-a)+b).str(), test_type(test_type(-a1) + b1).str()); in t1() 88 BOOST_CHECK_EQUAL(mpz_int(mpz_int(-a)-b).str(), test_type(test_type(-a1) - b1).str()); in t1() 202 mpz_int r; in t2() 327 static mpz_int m = mpz_int(1) << std::numeric_limits<test_type>::digits; in t4() 328 mpz_int t(a); in t4() 349 mpz_int z1, z2; in t5() 511 a = generate_random<mpz_int>(1000); in test() 512 b = generate_random<mpz_int>(512); in test() 513 c = generate_random<mpz_int>(256); in test() [all …]
|
H A D | test_fixed_int.cpp | 61 mpz_int a = generate_random<mpz_int>(1000); in main() 62 mpz_int b = generate_random<mpz_int>(512); in main() 63 mpz_int c = generate_random<mpz_int>(256); in main() 64 mpz_int d = generate_random<mpz_int>(32); in main() 77 BOOST_CHECK_EQUAL(mpz_int(a+b).str(), packed_type(a1 + b1).str()); in main() 78 BOOST_CHECK_EQUAL(mpz_int(a-b).str(), packed_type(a1 - b1).str()); in main() 79 BOOST_CHECK_EQUAL(mpz_int(mpz_int(-a)+b).str(), packed_type(packed_type(-a1) + b1).str()); in main() 80 BOOST_CHECK_EQUAL(mpz_int(mpz_int(-a)-b).str(), packed_type(packed_type(-a1) - b1).str()); in main() 94 BOOST_CHECK_EQUAL(mpz_int(a|b).str(), packed_type(a1 | b1).str()); in main() 143 std::cout << "-a + b = " << mpz_int(-a)+b << std::endl; in main() [all …]
|
H A D | test_gmp_conversions.cpp | 74 mpz_int iz(2); in main() 85 BOOST_TEST(mpz_int(mpf) == 2); in main() 86 BOOST_TEST(mpz_int(mpz) == 2); in main() 87 BOOST_TEST(mpz_int(mpq) == 2); in main() 89 iz = mpz_int(mpf); // explicit conversion only in main() 100 BOOST_TEST(mpz_int(f0) == 2); in main() 101 BOOST_TEST(mpz_int(f50) == 2); in main() 103 BOOST_TEST(mpz_int(rat) == 2); in main() 105 iz = static_cast<mpz_int>(f0); in main() 108 iz = static_cast<mpz_int>(f50); in main() [all …]
|
/dports/databases/mysqlwsrep57-server/boost_1_59_0/libs/multiprecision/test/ |
H A D | test_cpp_int.cpp | 69 boost::multiprecision::mpz_int a, b, c, d; 87 BOOST_CHECK_EQUAL(mpz_int(mpz_int(-a)+b).str(), test_type(test_type(-a1) + b1).str()); in t1() 88 BOOST_CHECK_EQUAL(mpz_int(mpz_int(-a)-b).str(), test_type(test_type(-a1) - b1).str()); in t1() 202 mpz_int r; in t2() 327 static mpz_int m = mpz_int(1) << std::numeric_limits<test_type>::digits; in t4() 328 mpz_int t(a); in t4() 349 mpz_int z1, z2; in t5() 511 a = generate_random<mpz_int>(1000); in test() 512 b = generate_random<mpz_int>(512); in test() 513 c = generate_random<mpz_int>(256); in test() [all …]
|
H A D | test_fixed_int.cpp | 61 mpz_int a = generate_random<mpz_int>(1000); in main() 62 mpz_int b = generate_random<mpz_int>(512); in main() 63 mpz_int c = generate_random<mpz_int>(256); in main() 64 mpz_int d = generate_random<mpz_int>(32); in main() 77 BOOST_CHECK_EQUAL(mpz_int(a+b).str(), packed_type(a1 + b1).str()); in main() 78 BOOST_CHECK_EQUAL(mpz_int(a-b).str(), packed_type(a1 - b1).str()); in main() 79 BOOST_CHECK_EQUAL(mpz_int(mpz_int(-a)+b).str(), packed_type(packed_type(-a1) + b1).str()); in main() 80 BOOST_CHECK_EQUAL(mpz_int(mpz_int(-a)-b).str(), packed_type(packed_type(-a1) - b1).str()); in main() 94 BOOST_CHECK_EQUAL(mpz_int(a|b).str(), packed_type(a1 | b1).str()); in main() 143 std::cout << "-a + b = " << mpz_int(-a)+b << std::endl; in main() [all …]
|
H A D | test_gmp_conversions.cpp | 74 mpz_int iz(2); in main() 85 BOOST_TEST(mpz_int(mpf) == 2); in main() 86 BOOST_TEST(mpz_int(mpz) == 2); in main() 87 BOOST_TEST(mpz_int(mpq) == 2); in main() 89 iz = mpz_int(mpf); // explicit conversion only in main() 100 BOOST_TEST(mpz_int(f0) == 2); in main() 101 BOOST_TEST(mpz_int(f50) == 2); in main() 103 BOOST_TEST(mpz_int(rat) == 2); in main() 105 iz = static_cast<mpz_int>(f0); in main() 108 iz = static_cast<mpz_int>(f50); in main() [all …]
|
/dports/databases/percona57-server/boost_1_59_0/libs/multiprecision/test/ |
H A D | test_cpp_int.cpp | 69 boost::multiprecision::mpz_int a, b, c, d; 87 BOOST_CHECK_EQUAL(mpz_int(mpz_int(-a)+b).str(), test_type(test_type(-a1) + b1).str()); in t1() 88 BOOST_CHECK_EQUAL(mpz_int(mpz_int(-a)-b).str(), test_type(test_type(-a1) - b1).str()); in t1() 202 mpz_int r; in t2() 327 static mpz_int m = mpz_int(1) << std::numeric_limits<test_type>::digits; in t4() 328 mpz_int t(a); in t4() 349 mpz_int z1, z2; in t5() 511 a = generate_random<mpz_int>(1000); in test() 512 b = generate_random<mpz_int>(512); in test() 513 c = generate_random<mpz_int>(256); in test() [all …]
|
H A D | test_fixed_int.cpp | 61 mpz_int a = generate_random<mpz_int>(1000); in main() 62 mpz_int b = generate_random<mpz_int>(512); in main() 63 mpz_int c = generate_random<mpz_int>(256); in main() 64 mpz_int d = generate_random<mpz_int>(32); in main() 77 BOOST_CHECK_EQUAL(mpz_int(a+b).str(), packed_type(a1 + b1).str()); in main() 78 BOOST_CHECK_EQUAL(mpz_int(a-b).str(), packed_type(a1 - b1).str()); in main() 79 BOOST_CHECK_EQUAL(mpz_int(mpz_int(-a)+b).str(), packed_type(packed_type(-a1) + b1).str()); in main() 80 BOOST_CHECK_EQUAL(mpz_int(mpz_int(-a)-b).str(), packed_type(packed_type(-a1) - b1).str()); in main() 94 BOOST_CHECK_EQUAL(mpz_int(a|b).str(), packed_type(a1 | b1).str()); in main() 143 std::cout << "-a + b = " << mpz_int(-a)+b << std::endl; in main() [all …]
|
H A D | test_gmp_conversions.cpp | 74 mpz_int iz(2); in main() 85 BOOST_TEST(mpz_int(mpf) == 2); in main() 86 BOOST_TEST(mpz_int(mpz) == 2); in main() 87 BOOST_TEST(mpz_int(mpq) == 2); in main() 89 iz = mpz_int(mpf); // explicit conversion only in main() 100 BOOST_TEST(mpz_int(f0) == 2); in main() 101 BOOST_TEST(mpz_int(f50) == 2); in main() 103 BOOST_TEST(mpz_int(rat) == 2); in main() 105 iz = static_cast<mpz_int>(f0); in main() 108 iz = static_cast<mpz_int>(f50); in main() [all …]
|
/dports/databases/percona57-client/boost_1_59_0/libs/multiprecision/test/ |
H A D | test_cpp_int.cpp | 69 boost::multiprecision::mpz_int a, b, c, d; 87 BOOST_CHECK_EQUAL(mpz_int(mpz_int(-a)+b).str(), test_type(test_type(-a1) + b1).str()); in t1() 88 BOOST_CHECK_EQUAL(mpz_int(mpz_int(-a)-b).str(), test_type(test_type(-a1) - b1).str()); in t1() 202 mpz_int r; in t2() 327 static mpz_int m = mpz_int(1) << std::numeric_limits<test_type>::digits; in t4() 328 mpz_int t(a); in t4() 349 mpz_int z1, z2; in t5() 511 a = generate_random<mpz_int>(1000); in test() 512 b = generate_random<mpz_int>(512); in test() 513 c = generate_random<mpz_int>(256); in test() [all …]
|
H A D | test_fixed_int.cpp | 61 mpz_int a = generate_random<mpz_int>(1000); in main() 62 mpz_int b = generate_random<mpz_int>(512); in main() 63 mpz_int c = generate_random<mpz_int>(256); in main() 64 mpz_int d = generate_random<mpz_int>(32); in main() 77 BOOST_CHECK_EQUAL(mpz_int(a+b).str(), packed_type(a1 + b1).str()); in main() 78 BOOST_CHECK_EQUAL(mpz_int(a-b).str(), packed_type(a1 - b1).str()); in main() 79 BOOST_CHECK_EQUAL(mpz_int(mpz_int(-a)+b).str(), packed_type(packed_type(-a1) + b1).str()); in main() 80 BOOST_CHECK_EQUAL(mpz_int(mpz_int(-a)-b).str(), packed_type(packed_type(-a1) - b1).str()); in main() 94 BOOST_CHECK_EQUAL(mpz_int(a|b).str(), packed_type(a1 | b1).str()); in main() 143 std::cout << "-a + b = " << mpz_int(-a)+b << std::endl; in main() [all …]
|
H A D | test_gmp_conversions.cpp | 74 mpz_int iz(2); in main() 85 BOOST_TEST(mpz_int(mpf) == 2); in main() 86 BOOST_TEST(mpz_int(mpz) == 2); in main() 87 BOOST_TEST(mpz_int(mpq) == 2); in main() 89 iz = mpz_int(mpf); // explicit conversion only in main() 100 BOOST_TEST(mpz_int(f0) == 2); in main() 101 BOOST_TEST(mpz_int(f50) == 2); in main() 103 BOOST_TEST(mpz_int(rat) == 2); in main() 105 iz = static_cast<mpz_int>(f0); in main() 108 iz = static_cast<mpz_int>(f50); in main() [all …]
|
/dports/devel/hyperscan/boost_1_75_0/libs/multiprecision/test/ |
H A D | test_cpp_int.cpp | 109 BOOST_CHECK_EQUAL(mpz_int(mpz_int(-a) + b).str(), test_type(test_type(-a1) + b1).str()); in t1() 110 BOOST_CHECK_EQUAL(mpz_int(mpz_int(-a) - b).str(), test_type(test_type(-a1) - b1).str()); in t1() 225 BOOST_CHECK_EQUAL(mpz_int(gcd(mpz_int(0), b)).str(), test_type(gcd(test_type(0), b1)).str()); in t2() 226 … BOOST_CHECK_EQUAL(mpz_int(gcd(mpz_int(0), -b)).str(), test_type(gcd(test_type(0), -b1)).str()); in t2() 227 BOOST_CHECK_EQUAL(mpz_int(gcd(a, mpz_int(0))).str(), test_type(gcd(a1, test_type(0))).str()); in t2() 228 BOOST_CHECK_EQUAL(mpz_int(gcd(-a, mpz_int(0))).str(), test_type(gcd(a1, test_type(0))).str()); in t2() 230 mpz_int r; in t2() 355 static mpz_int m = mpz_int(1) << std::numeric_limits<test_type>::digits; in t4() 356 mpz_int t(a); in t4() 423 mpz_int z1, z2; in t5() [all …]
|
H A D | test_fixed_int.cpp | 62 mpz_int a = generate_random<mpz_int>(1000); in main() 63 mpz_int b = generate_random<mpz_int>(512); in main() 64 mpz_int c = generate_random<mpz_int>(256); in main() 65 mpz_int d = generate_random<mpz_int>(32); in main() 78 BOOST_CHECK_EQUAL(mpz_int(a + b).str(), packed_type(a1 + b1).str()); in main() 79 BOOST_CHECK_EQUAL(mpz_int(a - b).str(), packed_type(a1 - b1).str()); in main() 80 BOOST_CHECK_EQUAL(mpz_int(mpz_int(-a) + b).str(), packed_type(packed_type(-a1) + b1).str()); in main() 81 BOOST_CHECK_EQUAL(mpz_int(mpz_int(-a) - b).str(), packed_type(packed_type(-a1) - b1).str()); in main() 82 BOOST_CHECK_EQUAL(mpz_int(c * d).str(), packed_type(c1 * d1).str()); in main() 144 std::cout << "-a + b = " << mpz_int(-a) + b << std::endl; in main() [all …]
|
/dports/devel/boost-docs/boost_1_72_0/libs/multiprecision/test/ |
H A D | test_cpp_int.cpp | 88 boost::multiprecision::mpz_int a, b, c, d; 105 BOOST_CHECK_EQUAL(mpz_int(mpz_int(-a) + b).str(), test_type(test_type(-a1) + b1).str()); in t1() 106 BOOST_CHECK_EQUAL(mpz_int(mpz_int(-a) - b).str(), test_type(test_type(-a1) - b1).str()); in t1() 220 mpz_int r; in t2() 345 static mpz_int m = mpz_int(1) << std::numeric_limits<test_type>::digits; in t4() 346 mpz_int t(a); in t4() 367 mpz_int z1, z2; in t5() 527 boost::multiprecision::mpz_int t; in test_bug_cases() 528 boost::multiprecision::mpz_int s1 = sqrt(boost::multiprecision::mpz_int(ui), t); in test_bug_cases() 699 b = generate_random<mpz_int>(512); in test() [all …]
|
H A D | test_fixed_int.cpp | 62 mpz_int a = generate_random<mpz_int>(1000); in main() 63 mpz_int b = generate_random<mpz_int>(512); in main() 64 mpz_int c = generate_random<mpz_int>(256); in main() 65 mpz_int d = generate_random<mpz_int>(32); in main() 78 BOOST_CHECK_EQUAL(mpz_int(a + b).str(), packed_type(a1 + b1).str()); in main() 79 BOOST_CHECK_EQUAL(mpz_int(a - b).str(), packed_type(a1 - b1).str()); in main() 80 BOOST_CHECK_EQUAL(mpz_int(mpz_int(-a) + b).str(), packed_type(packed_type(-a1) + b1).str()); in main() 81 BOOST_CHECK_EQUAL(mpz_int(mpz_int(-a) - b).str(), packed_type(packed_type(-a1) - b1).str()); in main() 82 BOOST_CHECK_EQUAL(mpz_int(c * d).str(), packed_type(c1 * d1).str()); in main() 144 std::cout << "-a + b = " << mpz_int(-a) + b << std::endl; in main() [all …]
|
H A D | test_gmp_conversions.cpp | 74 mpz_int iz(2); in main() 85 BOOST_TEST(mpz_int(mpf) == 2); in main() 86 BOOST_TEST(mpz_int(mpz) == 2); in main() 87 BOOST_TEST(mpz_int(mpq) == 2); in main() 89 iz = mpz_int(mpf); // explicit conversion only in main() 100 BOOST_TEST(mpz_int(f0) == 2); in main() 101 BOOST_TEST(mpz_int(f50) == 2); in main() 103 BOOST_TEST(mpz_int(rat) == 2); in main() 105 iz = static_cast<mpz_int>(f0); in main() 108 iz = static_cast<mpz_int>(f50); in main() [all …]
|
/dports/devel/boost-python-libs/boost_1_72_0/libs/multiprecision/test/ |
H A D | test_cpp_int.cpp | 88 boost::multiprecision::mpz_int a, b, c, d; 105 BOOST_CHECK_EQUAL(mpz_int(mpz_int(-a) + b).str(), test_type(test_type(-a1) + b1).str()); in t1() 106 BOOST_CHECK_EQUAL(mpz_int(mpz_int(-a) - b).str(), test_type(test_type(-a1) - b1).str()); in t1() 220 mpz_int r; in t2() 345 static mpz_int m = mpz_int(1) << std::numeric_limits<test_type>::digits; in t4() 346 mpz_int t(a); in t4() 367 mpz_int z1, z2; in t5() 527 boost::multiprecision::mpz_int t; in test_bug_cases() 528 boost::multiprecision::mpz_int s1 = sqrt(boost::multiprecision::mpz_int(ui), t); in test_bug_cases() 699 b = generate_random<mpz_int>(512); in test() [all …]
|
H A D | test_fixed_int.cpp | 62 mpz_int a = generate_random<mpz_int>(1000); in main() 63 mpz_int b = generate_random<mpz_int>(512); in main() 64 mpz_int c = generate_random<mpz_int>(256); in main() 65 mpz_int d = generate_random<mpz_int>(32); in main() 78 BOOST_CHECK_EQUAL(mpz_int(a + b).str(), packed_type(a1 + b1).str()); in main() 79 BOOST_CHECK_EQUAL(mpz_int(a - b).str(), packed_type(a1 - b1).str()); in main() 80 BOOST_CHECK_EQUAL(mpz_int(mpz_int(-a) + b).str(), packed_type(packed_type(-a1) + b1).str()); in main() 81 BOOST_CHECK_EQUAL(mpz_int(mpz_int(-a) - b).str(), packed_type(packed_type(-a1) - b1).str()); in main() 82 BOOST_CHECK_EQUAL(mpz_int(c * d).str(), packed_type(c1 * d1).str()); in main() 144 std::cout << "-a + b = " << mpz_int(-a) + b << std::endl; in main() [all …]
|
H A D | test_gmp_conversions.cpp | 74 mpz_int iz(2); in main() 85 BOOST_TEST(mpz_int(mpf) == 2); in main() 86 BOOST_TEST(mpz_int(mpz) == 2); in main() 87 BOOST_TEST(mpz_int(mpq) == 2); in main() 89 iz = mpz_int(mpf); // explicit conversion only in main() 100 BOOST_TEST(mpz_int(f0) == 2); in main() 101 BOOST_TEST(mpz_int(f50) == 2); in main() 103 BOOST_TEST(mpz_int(rat) == 2); in main() 105 iz = static_cast<mpz_int>(f0); in main() 108 iz = static_cast<mpz_int>(f50); in main() [all …]
|
/dports/devel/boost-libs/boost_1_72_0/libs/multiprecision/test/ |
H A D | test_cpp_int.cpp | 88 boost::multiprecision::mpz_int a, b, c, d; 105 BOOST_CHECK_EQUAL(mpz_int(mpz_int(-a) + b).str(), test_type(test_type(-a1) + b1).str()); in t1() 106 BOOST_CHECK_EQUAL(mpz_int(mpz_int(-a) - b).str(), test_type(test_type(-a1) - b1).str()); in t1() 220 mpz_int r; in t2() 345 static mpz_int m = mpz_int(1) << std::numeric_limits<test_type>::digits; in t4() 346 mpz_int t(a); in t4() 367 mpz_int z1, z2; in t5() 527 boost::multiprecision::mpz_int t; in test_bug_cases() 528 boost::multiprecision::mpz_int s1 = sqrt(boost::multiprecision::mpz_int(ui), t); in test_bug_cases() 699 b = generate_random<mpz_int>(512); in test() [all …]
|
H A D | test_fixed_int.cpp | 62 mpz_int a = generate_random<mpz_int>(1000); in main() 63 mpz_int b = generate_random<mpz_int>(512); in main() 64 mpz_int c = generate_random<mpz_int>(256); in main() 65 mpz_int d = generate_random<mpz_int>(32); in main() 78 BOOST_CHECK_EQUAL(mpz_int(a + b).str(), packed_type(a1 + b1).str()); in main() 79 BOOST_CHECK_EQUAL(mpz_int(a - b).str(), packed_type(a1 - b1).str()); in main() 80 BOOST_CHECK_EQUAL(mpz_int(mpz_int(-a) + b).str(), packed_type(packed_type(-a1) + b1).str()); in main() 81 BOOST_CHECK_EQUAL(mpz_int(mpz_int(-a) - b).str(), packed_type(packed_type(-a1) - b1).str()); in main() 82 BOOST_CHECK_EQUAL(mpz_int(c * d).str(), packed_type(c1 * d1).str()); in main() 144 std::cout << "-a + b = " << mpz_int(-a) + b << std::endl; in main() [all …]
|