diff options
| author | relnev <relnev@5198baeb-e213-0410-be47-fc2ff85ca46f> | 2003-01-08 00:20:11 +0000 |
|---|---|---|
| committer | relnev <relnev@5198baeb-e213-0410-be47-fc2ff85ca46f> | 2003-01-08 00:20:11 +0000 |
| commit | 165f0487d98d7542422a85ee3220d6389a2b31f9 (patch) | |
| tree | b95ef4ad543cdcda3ecde0eda92995e9740d8c18 /Source/Quaternions.cpp | |
| parent | c588ead14a84ce8054cc26e3a79a7561ef8bb1c2 (diff) | |
| download | blackshades-165f0487d98d7542422a85ee3220d6389a2b31f9.tar.gz | |
more linux hackery
git-svn-id: svn://svn.icculus.org/blackshades/trunk@20 5198baeb-e213-0410-be47-fc2ff85ca46f
Diffstat (limited to 'Source/Quaternions.cpp')
| -rw-r--r-- | Source/Quaternions.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/Quaternions.cpp b/Source/Quaternions.cpp index b806ec0..0353c0d 100644 --- a/Source/Quaternions.cpp +++ b/Source/Quaternions.cpp @@ -285,6 +285,7 @@ void Normalise(XYZ *vectory) { float fast_sqrt (register float arg) { +#ifdef MAC // Can replace with slower return std::sqrt(arg); register float result; @@ -299,6 +300,9 @@ float fast_sqrt (register float arg) result = result + 0.5 * result * (1.0 - arg * result * result); return result * arg; +#else + std::sqrt(arg); +#endif } float normaldotproduct(XYZ point1, XYZ point2){ |
