Index: Source/core/platform/audio/DenormalDisabler.h |
diff --git a/Source/core/platform/audio/DenormalDisabler.h b/Source/core/platform/audio/DenormalDisabler.h |
index 64b0d5e1dfae9cff58a7e18484498395ecbed4b9..b82c9a3c67a7986e669173bd9ed93110a0505852 100644 |
--- a/Source/core/platform/audio/DenormalDisabler.h |
+++ b/Source/core/platform/audio/DenormalDisabler.h |
@@ -25,6 +25,7 @@ |
#ifndef DenormalDisabler_h |
#define DenormalDisabler_h |
+#include "wtf/CPU.h" |
#include "wtf/MathExtras.h" |
#include <float.h> |
@@ -34,14 +35,14 @@ namespace WebCore { |
// Define HAVE_DENORMAL if we support flushing denormals to zero. |
#if OS(WINDOWS) && COMPILER(MSVC) |
-#define HAVE_DENORMAL |
+#define HAVE_DENORMAL 1 |
#endif |
-#if defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__)) |
-#define HAVE_DENORMAL |
+#if COMPILER(GCC) && (CPU(X86) || CPU(X86_64)) |
+#define HAVE_DENORMAL 1 |
#endif |
-#ifdef HAVE_DENORMAL |
+#if HAVE(DENORMAL) |
class DenormalDisabler { |
public: |
DenormalDisabler() |
@@ -83,7 +84,7 @@ public: |
#endif |
} |
private: |
-#if defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__)) |
+#if COMPILER(GCC) && (CPU(X86) || CPU(X86_64)) |
inline int getCSR() |
{ |
int result; |