diff options
| author | Mattias Andrée <maandree@kth.se> | 2016-05-07 03:02:56 +0200 |
|---|---|---|
| committer | Mattias Andrée <maandree@kth.se> | 2016-05-07 03:02:56 +0200 |
| commit | fdc75a358e4c20116640c08f4e8ce7a09dc3cebd (patch) | |
| tree | ca67767e06b0dd9d734dc027bb02a4a47681241e /src/zptest.c | |
| parent | Make zdiv and zmod (calls zdivmod) inline (diff) | |
| download | libzahl-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.c | 3 |
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); |
