summaryrefslogtreecommitdiff
path: root/benchmarks/hbench/patches/patch-ar
diff options
context:
space:
mode:
Diffstat (limited to 'benchmarks/hbench/patches/patch-ar')
-rw-r--r--benchmarks/hbench/patches/patch-ar13
1 files changed, 13 insertions, 0 deletions
diff --git a/benchmarks/hbench/patches/patch-ar b/benchmarks/hbench/patches/patch-ar
new file mode 100644
index 00000000000..1812cfbdb06
--- /dev/null
+++ b/benchmarks/hbench/patches/patch-ar
@@ -0,0 +1,13 @@
+$NetBSD: patch-ar,v 1.1 2008/04/05 14:09:18 chris Exp $
+
+--- src/mhz.c.orig 2008-04-05 14:34:31.000000000 +0100
++++ src/mhz.c 2008-04-05 14:33:40.000000000 +0100
+@@ -118,6 +118,8 @@ main(ac, av)
+ */
+ #ifdef sparc
+ # define FOUR a >>= 1; a >>= 1; a >>= 1; a >>= 1;
++#elif defined(__arm__)
++# define FOUR a++; a >>= 1; a++; a >>= 1;
+ #else
+ # ifdef _AIX /* really for the rs6000 only */
+ # define FOUR a++; a++;