Bug 1114368 - Use GCC builtins in MathAlgorithms.h on mingw. r=froydnj
authorJacek Caban <jacek@codeweavers.com>
Mon, 22 Dec 2014 12:38:41 +0100
changeset 220927 c0c165a61e9dc81ae066a5a54771d743cf5607c8
parent 220844 082d643006b3e7681374bde1cee4634caf1b9d08
child 220928 458cfe948a05107cbbece8991272bbd94d93802e
push id28004
push userryanvm@gmail.com
push dateMon, 22 Dec 2014 22:55:36 +0000
treeherdermozilla-central@f6d10f05f6e9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfroydnj
bugs1114368
milestone37.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 1114368 - Use GCC builtins in MathAlgorithms.h on mingw. r=froydnj
mfbt/MathAlgorithms.h
--- a/mfbt/MathAlgorithms.h
+++ b/mfbt/MathAlgorithms.h
@@ -141,17 +141,17 @@ template<>
 inline long double
 Abs<long double>(const long double aLongDouble)
 {
   return std::fabs(aLongDouble);
 }
 
 } // namespace mozilla
 
-#if defined(_WIN32) && \
+#if defined(_MSC_VER) && \
     (defined(_M_IX86) || defined(_M_AMD64) || defined(_M_X64))
 #  define MOZ_BITSCAN_WINDOWS
 
 #  include <intrin.h>
 #  pragma intrinsic(_BitScanForward, _BitScanReverse)
 
 #  if defined(_M_AMD64) || defined(_M_X64)
 #    define MOZ_BITSCAN_WINDOWS64