aboutsummaryrefslogtreecommitdiff
path: root/Source/Maths.cpp
diff options
context:
space:
mode:
authorNguyễn Gia Phong <mcsinyx@disroot.org>2021-06-17 14:20:54 +0700
committerNguyễn Gia Phong <mcsinyx@disroot.org>2021-06-17 14:22:53 +0700
commit602a0c5951050e7cce645534cb4f136cf9f4fee4 (patch)
treee70e63b0b0058830e58c244ad917bc892c10418f /Source/Maths.cpp
parent094e12df1ebb81d304803be4b274546384ec117c (diff)
downloadblackshades-602a0c5951050e7cce645534cb4f136cf9f4fee4.tar.gz
Rename source and build directory1.1.1
Diffstat (limited to 'Source/Maths.cpp')
-rw-r--r--Source/Maths.cpp24
1 files changed, 0 insertions, 24 deletions
diff --git a/Source/Maths.cpp b/Source/Maths.cpp
deleted file mode 100644
index 58e769a..0000000
--- a/Source/Maths.cpp
+++ /dev/null
@@ -1,24 +0,0 @@
-/**> HEADER FILES <**/
-#include "Maths.h"
-
-double fast_sqrt (register double arg)
-{
-#ifdef OS9
- // Can replace with slower return std::sqrt(arg);
- register double 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 sqrt(arg);
-#endif
-}