aboutsummaryrefslogtreecommitdiff
path: root/Source/Maths.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Maths.cpp')
-rw-r--r--Source/Maths.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/Maths.cpp b/Source/Maths.cpp
index f8f2664..3505ce6 100644
--- a/Source/Maths.cpp
+++ b/Source/Maths.cpp
@@ -3,6 +3,7 @@
double fast_sqrt (register double arg)
{
+#ifdef MAC
// Can replace with slower return std::sqrt(arg);
register double result;
@@ -17,5 +18,7 @@ double fast_sqrt (register double arg)
result = result + 0.5 * result * (1.0 - arg * result * result);
return result * arg;
+#else
+ return std::sqrt(arg);
+#endif
}
-