aboutsummaryrefslogtreecommitdiff
path: root/benchmarks/common
diff options
context:
space:
mode:
authorAndrew Waterman <waterman@eecs.berkeley.edu>2014-04-07 16:03:37 -0700
committerAndrew Waterman <waterman@eecs.berkeley.edu>2014-04-07 16:03:37 -0700
commit629d7edf826573a9bf297486999e23a7b745c44d (patch)
tree5c581ef9dec383151cf1e160ee55d3786ba78349 /benchmarks/common
parentb961c327162755de390b9175c792ffeb309f82a6 (diff)
downloadriscv-tests-629d7edf826573a9bf297486999e23a7b745c44d.zip
riscv-tests-629d7edf826573a9bf297486999e23a7b745c44d.tar.gz
riscv-tests-629d7edf826573a9bf297486999e23a7b745c44d.tar.bz2
Add radix sort benchmark
Diffstat (limited to 'benchmarks/common')
-rw-r--r--benchmarks/common/syscalls.c3
-rw-r--r--benchmarks/common/util.h2
2 files changed, 3 insertions, 2 deletions
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 <stdio.h>
#include <limits.h>
#include <machine/syscall.h>
-#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