diff options
author | RJ Ryan <rryan@mixxx.org> | 2014-04-25 09:49:05 -0400 |
---|---|---|
committer | RJ Ryan <rryan@mixxx.org> | 2014-04-25 10:38:07 -0400 |
commit | e0ba7ab6d7e659097bd43e90f5002f3cba5a1e6f (patch) | |
tree | 0467afdfe6b42340ba91c5285fb36f790da66727 /src/util/math.h | |
parent | ab394ebd8e92c3c5becf684ad799e5517b68b3ad (diff) |
Move "#pragma intrinsic(fabs)" calls to util/math.h.
Diffstat (limited to 'src/util/math.h')
-rw-r--r-- | src/util/math.h | 2 |
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 |