1
1
// /
2
2
// / @file pi_deleglise_rivat.cpp
3
- // / @brief Test the pi_deleglise_rivat_64 (x) function.
3
+ // / @brief Test the pi_deleglise_rivat (x) function.
4
4
// /
5
5
// / Copyright (C) 2023 Kim Walisch, <[email protected] >
6
6
// /
@@ -44,15 +44,15 @@ int main()
44
44
45
45
{
46
46
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;
49
49
check (res == 0 );
50
50
}
51
51
52
52
for (int64_t x = 0 ; x < (int64_t ) pix.size (); x++)
53
53
{
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;
56
56
check (res == pix[x]);
57
57
}
58
58
@@ -63,9 +63,9 @@ int main()
63
63
for (int i = 0 ; i < 1000 ; i++)
64
64
{
65
65
int64_t x = dist (gen);
66
- int64_t res1 = pi_deleglise_rivat_64 (x, threads);
66
+ int64_t res1 = pi_deleglise_rivat (x, threads);
67
67
int64_t res2 = pi_legendre (x, threads);
68
- std::cout << " pi_deleglise_rivat_64 (" << x << " ) = " << res1;
68
+ std::cout << " pi_deleglise_rivat (" << x << " ) = " << res1;
69
69
check (res1 == res2);
70
70
}
71
71
0 commit comments