projects
/
libc-test
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bench: pass N as argument, update readme
[libc-test]
/
common
/
t.c
diff --git
a/common/t.c
b/common/t.c
index
02d77c7
..
f42054b
100644
(file)
--- a/
common/t.c
+++ b/
common/t.c
@@
-9,9
+9,9
@@
#include <unistd.h>
#include "test.h"
#include <unistd.h>
#include "test.h"
-#define B(
t
)
-#define T(
t) void t
();
-#include "
main
.h"
+#define B(
f
)
+#define T(
f) void f
();
+#include "
tests
.h"
#undef T
static int failed;
#undef T
static int failed;
@@
-22,7
+22,6
@@
static int count;
static int nfailed;
static void errtimer() { error("use *_timer in benchmarks only\n"); }
static int nfailed;
static void errtimer() { error("use *_timer in benchmarks only\n"); }
-int N = 0;
void start_timer() { errtimer(); }
void stop_timer() { errtimer(); }
void reset_timer() { errtimer(); }
void start_timer() { errtimer(); }
void stop_timer() { errtimer(); }
void reset_timer() { errtimer(); }
@@
-79,6
+78,6
@@
static int summary() {
int main() {
#define T(t) run(#t, t);
int main() {
#define T(t) run(#t, t);
-#include "
main
.h"
+#include "
tests
.h"
return summary();
}
return summary();
}