Add radix sort benchmark
[riscv-tests.git] / benchmarks / common / util.h
index ea065304f9b60228db9f718c891d211dce67aa83..7c2a048bf50f3711e2747a463f80249da3262955 100644 (file)
@@ -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