tlibsec: update primetest to use mpfmt - plan9port - [fork] Plan 9 from user space
 (HTM) git clone git://src.adamsgaard.dk/plan9port
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit a1afc8529d03515d361110edcabb73402527be89
 (DIR) parent ddfc031c3bb99a251eb927a71f7f77288c869de3
 (HTM) 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:
         M src/libsec/port/primetest.c         |       2 +-
       
       1 file changed, 1 insertion(+), 1 deletion(-)
       ---
 (DIR) diff --git a/src/libsec/port/primetest.c b/src/libsec/port/primetest.c
       t@@ -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 */