summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Evans <jasone@canonware.com>2014-03-31 00:24:24 (GMT)
committerJason Evans <jasone@canonware.com>2014-03-31 00:24:24 (GMT)
commite64b1b7be9319b187360306ceff17ce6cb2d530c (patch)
tree5ebb33cadabeca2851f9c9ef0210130143efb201
parentdf3f27024f193b7baeedcd9f3799b4774dd20bbf (diff)
downloadjemalloc-e64b1b7be9319b187360306ceff17ce6cb2d530c.zip
jemalloc-e64b1b7be9319b187360306ceff17ce6cb2d530c.tar.gz
jemalloc-e64b1b7be9319b187360306ceff17ce6cb2d530c.tar.bz2
Enable big-endian mode for SFMT.
Add cpp logic to enable big-endian mode in SFMT. This should fix SFMT tests on e.g. MIPS and SPARC.
-rw-r--r--test/src/SFMT.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/src/SFMT.c b/test/src/SFMT.c
index 433d7f6..e6f8dee 100644
--- a/test/src/SFMT.c
+++ b/test/src/SFMT.c
@@ -49,6 +49,9 @@
#include "test/jemalloc_test.h"
#include "test/SFMT-params.h"
+#if defined(JEMALLOC_BIG_ENDIAN) && !defined(BIG_ENDIAN64)
+#define BIG_ENDIAN64 1
+#endif
#if defined(__BIG_ENDIAN__) && !defined(__amd64) && !defined(BIG_ENDIAN64)
#define BIG_ENDIAN64 1
#endif