Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(359)

Unified Diff: Source/core/platform/audio/DenormalDisabler.h

Issue 23936006: Use wtf macros for audio (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/core/platform/audio/DirectConvolver.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/platform/audio/DenormalDisabler.h
diff --git a/Source/core/platform/audio/DenormalDisabler.h b/Source/core/platform/audio/DenormalDisabler.h
index bbceadacba94cbe5736f5a80d0726d5e1e11bb4f..802cb73c864f4af1be79372f19146f497deef894 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(WIN) && 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;
« no previous file with comments | « no previous file | Source/core/platform/audio/DirectConvolver.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698