summaryrefslogtreecommitdiff
path: root/test/math/legendre.cpp
diff options
context:
space:
mode:
authorGloria Mundi <gloria@gloria-mundi.eu>2026-09-14 23:25:14 +0200
committerGloria Mundi <gloria@gloria-mundi.eu>2026-09-14 23:25:14 +0200
commit5b85f8063460cfeec6b7a798b5dfeb06755354fd (patch)
tree972c39aa4ca7bdcea3cd04789034f1d034f6cd32 /test/math/legendre.cpp
parent77ca873deccb6c38f235896bf03f53d6cc0bcf2e (diff)
parentcf4b381136961c321eb0e2140a954a74341d5f2c (diff)
merge mzuenni changesHEADmaster
Diffstat (limited to 'test/math/legendre.cpp')
-rw-r--r--test/math/legendre.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/math/legendre.cpp b/test/math/legendre.cpp
index 44f88c1..c828302 100644
--- a/test/math/legendre.cpp
+++ b/test/math/legendre.cpp
@@ -11,7 +11,7 @@ void stress_test() {
vector<bool> isSquare(p);
for (ll j = 1; j < p; j++) isSquare[(j*j) % p] = true;
for (ll j = 0; j < p; j++) {
- auto got = legendre(j, p);
+ auto got = legendreS(j, p);
auto expected = j == 0 ? 0 : (isSquare[j] ? 1 : -1);
if (got != expected) cerr << "error: " << j << " " << p << FAIL;
}
@@ -28,7 +28,7 @@ void performance_test() {
for (int operations = 0; operations < N; operations++) {
ll j = Random::integer<ll>(mod);
t.start();
- hash += legendre(j, mod);
+ hash += legendreS(j, mod);
t.stop();
}
if (t.time > 750) cerr << "too slow: " << t.time << FAIL;