more debugging
authorRudolf Polzer <divverent@xonotic.org>
Tue, 25 Oct 2011 13:50:13 +0000 (15:50 +0200)
committerRudolf Polzer <divverent@xonotic.org>
Tue, 25 Oct 2011 13:50:13 +0000 (15:50 +0200)
d0.c
main.c

diff --git a/d0.c b/d0.c
index 0a24676..4692d35 100644 (file)
--- a/d0.c
+++ b/d0.c
@@ -43,7 +43,7 @@ const char *d0_bsd_license_notice = "\n"
 
 #include <stdlib.h>
 
-#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 (file)
--- 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])))));