Skip to content

Commit 9b2de66

Browse files
committed
Update pi(x) tests
1 parent b562048 commit 9b2de66

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

test/pi_deleglise_rivat.cpp

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
///
22
/// @file pi_deleglise_rivat.cpp
3-
/// @brief Test the pi_deleglise_rivat_64(x) function.
3+
/// @brief Test the pi_deleglise_rivat(x) function.
44
///
55
/// Copyright (C) 2023 Kim Walisch, <[email protected]>
66
///
@@ -44,15 +44,15 @@ int main()
4444

4545
{
4646
int64_t x = -1;
47-
int64_t res = pi_deleglise_rivat_64(x, threads);
48-
std::cout << "pi_deleglise_rivat_64(" << x << ") = " << res;
47+
int64_t res = pi_deleglise_rivat(x, threads);
48+
std::cout << "pi_deleglise_rivat(" << x << ") = " << res;
4949
check(res == 0);
5050
}
5151

5252
for (int64_t x = 0; x < (int64_t) pix.size(); x++)
5353
{
54-
int64_t res = pi_deleglise_rivat_64(x, threads);
55-
std::cout << "pi_deleglise_rivat_64(" << x << ") = " << res;
54+
int64_t res = pi_deleglise_rivat(x, threads);
55+
std::cout << "pi_deleglise_rivat(" << x << ") = " << res;
5656
check(res == pix[x]);
5757
}
5858

@@ -63,9 +63,9 @@ int main()
6363
for (int i = 0; i < 1000; i++)
6464
{
6565
int64_t x = dist(gen);
66-
int64_t res1 = pi_deleglise_rivat_64(x, threads);
66+
int64_t res1 = pi_deleglise_rivat(x, threads);
6767
int64_t res2 = pi_legendre(x, threads);
68-
std::cout << "pi_deleglise_rivat_64(" << x << ") = " << res1;
68+
std::cout << "pi_deleglise_rivat(" << x << ") = " << res1;
6969
check(res1 == res2);
7070
}
7171

test/pi_gourdon.cpp

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
///
22
/// @file pi_gourdon.cpp
3-
/// @brief Test the pi_gourdon_64(x) function.
3+
/// @brief Test the pi_gourdon(x) function.
44
///
55
/// Copyright (C) 2023 Kim Walisch, <[email protected]>
66
///
@@ -45,15 +45,15 @@ int main()
4545

4646
{
4747
int64_t x = -1;
48-
int64_t res = pi_gourdon_64(x, threads);
49-
std::cout << "pi_gourdon_64(" << x << ") = " << res;
48+
int64_t res = pi_gourdon(x, threads);
49+
std::cout << "pi_gourdon(" << x << ") = " << res;
5050
check(res == 0);
5151
}
5252

5353
for (int64_t x = 0; x < (int64_t) pix.size(); x++)
5454
{
55-
int64_t res = pi_gourdon_64(x, threads);
56-
std::cout << "pi_gourdon_64(" << x << ") = " << res;
55+
int64_t res = pi_gourdon(x, threads);
56+
std::cout << "pi_gourdon(" << x << ") = " << res;
5757
check(res == pix[x]);
5858
}
5959

@@ -64,9 +64,9 @@ int main()
6464
for (int i = 0; i < 1000; i++)
6565
{
6666
int64_t x = dist(gen);
67-
int64_t res1 = pi_gourdon_64(x, threads);
67+
int64_t res1 = pi_gourdon(x, threads);
6868
int64_t res2 = pi_legendre(x, threads);
69-
std::cout << "pi_gourdon_64(" << x << ") = " << res1;
69+
std::cout << "pi_gourdon(" << x << ") = " << res1;
7070
check(res1 == res2);
7171
}
7272

0 commit comments

Comments
 (0)