This commit is contained in:
TakaRikka
2021-11-10 23:54:31 -08:00
parent f34238e2cc
commit 9774ec36b7
47 changed files with 3777 additions and 3726 deletions
+8
View File
@@ -10,6 +10,14 @@ inline f32 JMAFastReciprocal(f32 value) {
return __fres(value);
}
inline f32 JMAFastSqrt(f32 input) {
if (input > 0.0f) {
f64 tmp = __frsqrte(input);
return tmp * input;
}
return input;
}
namespace JMath {
inline f32 fastReciprocal(f32 value) {