]> git.jsancho.org Git - lugaru.git/blobdiff - Source/Quaternions.h
Removed obsolete PLATFORM_MACOSX code
[lugaru.git] / Source / Quaternions.h
index 499bc0da0bd0fcc85151395b1b0f90d59d48a7ea..e88546968196c860ffb86e7d0bc5464beaac9b95 100644 (file)
@@ -240,25 +240,7 @@ inline void CrossProduct(XYZ P, XYZ Q, XYZ *V)
 
 inline float fast_sqrt (register float arg)
 {
-#if PLATFORM_MACOSX
-    // Can replace with slower return std::sqrt(arg);
-    register float result;
-
-    if (arg == 0.0)
-        return 0.0;
-
-    asm {
-        frsqrte     result, arg         // Calculate Square root
-    }
-
-    // Newton Rhapson iterations.
-    result = result + 0.5 * result * (1.0 - arg * result * result);
-    result = result + 0.5 * result * (1.0 - arg * result * result);
-
-    return result * arg;
-#else
-    return sqrtf( arg);
-#endif
+    return sqrtf(arg);
 }
 
 inline float normaldotproduct(XYZ point1, XYZ point2)