summaryrefslogtreecommitdiffstats
path: root/src/util/math.h
diff options
context:
space:
mode:
authorRJ Ryan <rryan@mixxx.org>2014-04-25 09:49:05 -0400
committerRJ Ryan <rryan@mixxx.org>2014-04-25 10:38:07 -0400
commite0ba7ab6d7e659097bd43e90f5002f3cba5a1e6f (patch)
tree0467afdfe6b42340ba91c5285fb36f790da66727 /src/util/math.h
parentab394ebd8e92c3c5becf684ad799e5517b68b3ad (diff)
Move "#pragma intrinsic(fabs)" calls to util/math.h.
Diffstat (limited to 'src/util/math.h')
-rw-r--r--src/util/math.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util/math.h b/src/util/math.h
index a5fe016ef0..4156a67fcf 100644
--- a/src/util/math.h
+++ b/src/util/math.h
@@ -39,6 +39,8 @@ inline bool even(const T& value) {
#include <float.h>
#define isnan(x) _isnan(x)
#define isinf(x) (!_finite(x))
+// Ask VC++ to emit an intrinsic for fabs instead of calling std::fabs.
+#pragma intrinsic(fabs)
#else
// for isnan() and isinf() everywhere else use the cmath version. We define
// these as macros to prevent clashing with c++11 built-ins in the global