Introduction
Introduction Statistics Contact Development Disclaimer Help
zptest: if n is even, let the witness be 2 - libzahl - big integer library
git clone git://git.suckless.org/libzahl
Log
Files
Refs
README
LICENSE
---
commit fd9c83cbb9d80a8108cd5112d12f475406b44a20
parent 7214b27058765ea3892061e846c601499892c48d
Author: Mattias Andrée <[email protected]>
Date: Fri, 13 May 2016 19:07:07 +0200
zptest: if n is even, let the witness be 2
Signed-off-by: Mattias Andrée <[email protected]>
Diffstat:
M src/zptest.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/zptest.c b/src/zptest.c
@@ -28,7 +28,7 @@ zptest(z_t witness, z_t n, int t)
}
if (unlikely(zeven(n))) {
if (witness)
- SET(witness, n);
+ zsetu(witness, 2);
return NONPRIME;
}
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.