Bug 1153601 - MFBT: LZ4: Add support for mips64. r=waldo
authorHeiher <r@hev.cc>
Sat, 11 Apr 2015 22:40:00 +0200
changeset 238989 2add06aad422a5f3e84cc058b4f27c3d04824134
parent 238988 18a3c813d1fb88b8e287eed6d2d4837052f0540a
child 238990 33e89c9a41728ecb37f8d6052858bf327d46a5cf
push id28579
push userryanvm@gmail.com
push dateTue, 14 Apr 2015 20:02:20 +0000
treeherdermozilla-central@2ee2da378d12 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerswaldo
bugs1153601
milestone40.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1153601 - MFBT: LZ4: Add support for mips64. r=waldo
mfbt/lz4.c
--- a/mfbt/lz4.c
+++ b/mfbt/lz4.c
@@ -45,17 +45,18 @@
 /**************************************
    CPU Feature Detection
 **************************************/
 /* 32 or 64 bits ? */
 #if (defined(__x86_64__) || defined(_M_X64) || defined(_WIN64) \
   || defined(__powerpc64__) || defined(__powerpc64le__) \
   || defined(__ppc64__) || defined(__ppc64le__) \
   || defined(__PPC64__) || defined(__PPC64LE__) \
-  || defined(__ia64) || defined(__itanium__) || defined(_M_IA64) )   /* Detects 64 bits mode */
+  || defined(__ia64) || defined(__itanium__) || defined(_M_IA64) \
+  || (defined(__mips64) && defined(_ABI64)))   /* Detects 64 bits mode */
 #  define LZ4_ARCH64 1
 #else
 #  define LZ4_ARCH64 0
 #endif
 
 /*
  * Little Endian or Big Endian ?
  * Overwrite the #define below if you know your architecture endianess