commit a1afc8529d03515d361110edcabb73402527be89
parent ddfc031c3bb99a251eb927a71f7f77288c869de3
Author: Russ Cox <rsc@swtch.com>
Date: Thu, 11 Mar 2010 18:04:12 -0800
libsec: update primetest to use mpfmt
R=rsc
http://codereview.appspot.com/464041
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/libsec/port/primetest.c b/src/libsec/port/primetest.c
@@ -10,7 +10,7 @@ main(void)
mpint *q = mpnew(0);
mpint *nine = mpnew(0);
- fmtinstall('B', mpconv);
+ fmtinstall('B', mpfmt);
strtomp("2492491", nil, 16, z); /* 38347921 = x*y = (2**28-9)/7, */
/* an example of 3**(n-1)=1 mod n */
strtomp("15662C00E811", nil, 16, p);/* 23528569104401, a prime */