From fca74d4bc3569506a6659880a89aa009dc11f552 Mon Sep 17 00:00:00 2001 From: wukong Date: Mon, 23 Nov 2015 17:48:48 +0100 Subject: moon-abe cleanup Change-Id: Ie1259856db03f0b9e80de3e967ec6bd1f03191b3 --- moon-abe/pbc-0.5.14/benchmark/timersa.c | 83 --------------------------------- 1 file changed, 83 deletions(-) delete mode 100644 moon-abe/pbc-0.5.14/benchmark/timersa.c (limited to 'moon-abe/pbc-0.5.14/benchmark/timersa.c') diff --git a/moon-abe/pbc-0.5.14/benchmark/timersa.c b/moon-abe/pbc-0.5.14/benchmark/timersa.c deleted file mode 100644 index 53a64cfb..00000000 --- a/moon-abe/pbc-0.5.14/benchmark/timersa.c +++ /dev/null @@ -1,83 +0,0 @@ -#include -#include "pbc_fp.h" -#include "pbc_test.h" - -int main(void) { - mpz_t p, q, N, d; - mpz_t dmp1, dmq1; - mpz_t ipmq, iqmp; - mpz_t adq, adp; - - field_t f; - element_t a, b; - double t0, t1, tnaive = 0, tcrt=0; - int i, n; - - mpz_init(p); - mpz_init(q); - mpz_init(N); - mpz_init(d); - mpz_init(dmp1); - mpz_init(dmq1); - mpz_init(ipmq); - mpz_init(iqmp); - mpz_init(adp); - mpz_init(adq); - pbc_mpz_randomb(p, 512); - pbc_mpz_randomb(q, 512); - mpz_nextprime(p, p); - mpz_nextprime(q, q); - mpz_mul(N, p, q); - mpz_invert(ipmq, p, q); - mpz_invert(iqmp, q, p); - - field_init_fp(f, N); - element_init(a, f); - element_init(b, f); - n = 10; - for (i=0; i