]> de.git.xonotic.org Git - xonotic/d0_blind_id.git/commitdiff
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 0a246767d7fa9754320d3fe69071b8b52a4d5e5c..4692d35027c43d180842c326e732cd2dd3760cb4 100644 (file)
--- a/d0.c
+++ b/d0.c
@@ -43,7 +43,7 @@ const char *d0_bsd_license_notice = "\n"
 
 #include <stdlib.h>
 
 
 #include <stdlib.h>
 
-#define MUTEX_DEBUG
+//#define MUTEX_DEBUG
 
 void *(*d0_malloc)(size_t len) = malloc;
 void (*d0_free)(void *p) = free;
 
 void *(*d0_malloc)(size_t len) = malloc;
 void (*d0_free)(void *p) = free;
diff --git a/main.c b/main.c
index bc39797db4b1b58face52be4a098119836279cc4..1fa088f5824f6850ad5236c071586cda799121ba 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);
                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);
                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])))));
 
        }
        while(!(quit || argc != 2 || (buf2size > strlen(argv[1]) && !memcmp(buf2, argv[1], strlen(argv[1])))));