projects
/
riscv-tests.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add radix sort benchmark
[riscv-tests.git]
/
benchmarks
/
common
/
util.h
diff --git
a/benchmarks/common/util.h
b/benchmarks/common/util.h
index ea065304f9b60228db9f718c891d211dce67aa83..7c2a048bf50f3711e2747a463f80249da3262955 100644
(file)
--- a/
benchmarks/common/util.h
+++ b/
benchmarks/common/util.h
@@
-31,6
+31,8
@@
static void setStats(int enable) {}
extern void setStats(int enable);
#endif
+#define static_assert(cond) switch(0) { case 0: case !!(long)(cond): ; }
+
static void printArray(const char name[], int n, const int arr[])
{
#if HOST_DEBUG