From: Rudolf Polzer Date: Tue, 25 Oct 2011 13:50:13 +0000 (+0200) Subject: more debugging X-Git-Tag: v0.5~13 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=efa7dda9553446c3030c1d82c52ef35711708012;p=xonotic%2Fd0_blind_id.git more debugging --- diff --git a/d0.c b/d0.c index 0a24676..4692d35 100644 --- a/d0.c +++ b/d0.c @@ -43,7 +43,7 @@ const char *d0_bsd_license_notice = "\n" #include -#define MUTEX_DEBUG +//#define MUTEX_DEBUG void *(*d0_malloc)(size_t len) = malloc; void (*d0_free)(void *p) = free; diff --git a/main.c b/main.c index bc39797..1fa088f 100644 --- a/main.c +++ b/main.c @@ -119,9 +119,9 @@ int main(int argc, char **argv) buf2size = sizeof(buf2) - 1; if(!d0_blind_id_fingerprint64_public_id(ctx_other, buf2, &buf2size)) errx(4, "fp64 fail"); bench(&bench_stop); + ++n; if(n % 1024 == 0) printf("gen=%f fp=%f\n", n/bench_gen, n/bench_fp); - ++n; } while(!(quit || argc != 2 || (buf2size > strlen(argv[1]) && !memcmp(buf2, argv[1], strlen(argv[1])))));