summaryrefslogtreecommitdiff
path: root/test/cminor/sha1.cmp
diff options
context:
space:
mode:
Diffstat (limited to 'test/cminor/sha1.cmp')
-rw-r--r--test/cminor/sha1.cmp6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/cminor/sha1.cmp b/test/cminor/sha1.cmp
index 9d7744c..98a6b51 100644
--- a/test/cminor/sha1.cmp
+++ b/test/cminor/sha1.cmp
@@ -6,7 +6,13 @@
extern "memcpy" : int -> int -> int -> void
extern "memset" : int -> int -> int -> void
+#if defined(__ppc__) || defined(__PPC__)
#define ARCH_BIG_ENDIAN
+#elif defined(__i386__) || defined(__x86_64__) || defined(__ARMEL__)
+#undef ARCH_BIG_ENDIAN
+#else
+#error "unknown endianness"
+#endif
#define rol1(x) (((x) << 1) | ((x) >>u 31))
#define rol5(x) (((x) << 5) | ((x) >>u 27))