From 629d7edf826573a9bf297486999e23a7b745c44d Mon Sep 17 00:00:00 2001 From: Andrew Waterman Date: Mon, 7 Apr 2014 16:03:37 -0700 Subject: Add radix sort benchmark --- benchmarks/common/syscalls.c | 3 +-- benchmarks/common/util.h | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'benchmarks/common') diff --git a/benchmarks/common/syscalls.c b/benchmarks/common/syscalls.c index fbbb880..a168ebf 100644 --- a/benchmarks/common/syscalls.c +++ b/benchmarks/common/syscalls.c @@ -4,10 +4,9 @@ #include #include #include -#include "encoding.h" +#include "util.h" #define SYS_stats 1234 -#define static_assert(cond) switch(0) { case 0: case !!(long)(cond): ; } static long handle_frontend_syscall(long which, long arg0, long arg1, long arg2) { diff --git a/benchmarks/common/util.h b/benchmarks/common/util.h index ea06530..7c2a048 100644 --- 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 -- cgit v1.1