aboutsummaryrefslogtreecommitdiffstats
path: root/src/zptest.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-05-07 03:02:56 +0200
committerMattias Andrée <maandree@kth.se>2016-05-07 03:02:56 +0200
commitfdc75a358e4c20116640c08f4e8ce7a09dc3cebd (patch)
treeca67767e06b0dd9d734dc027bb02a4a47681241e /src/zptest.c
parentMake zdiv and zmod (calls zdivmod) inline (diff)
downloadlibzahl-fdc75a358e4c20116640c08f4e8ce7a09dc3cebd.tar.gz
libzahl-fdc75a358e4c20116640c08f4e8ce7a09dc3cebd.tar.bz2
libzahl-fdc75a358e4c20116640c08f4e8ce7a09dc3cebd.tar.xz
Optimisations
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'src/zptest.c')
-rw-r--r--src/zptest.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/zptest.c b/src/zptest.c
index 29e50b7..406cedc 100644
--- a/src/zptest.c
+++ b/src/zptest.c
@@ -47,8 +47,7 @@ zptest(z_t witness, z_t n, int t)
continue;
for (i = 1; i < r; i++) {
- zsqr(x, x);
- zmod(x, x, n);
+ zmodsqr(x, x, n);
if (!zcmp(x, libzahl_const_1)) {
if (witness)
zswap(witness, a);