mirror of
https://github.com/zeldaret/tp
synced 2026-06-29 03:31:08 -04:00
d_ky_thunder done / d_scope wip / m_Do_graphic wip (#308)
* d_ky_thunder OK + misc build fixes * d_scope mostly done * some m_Do_graphic wip * remove asm
This commit is contained in:
@@ -21,12 +21,16 @@ inline float __frsqrtes(register double f) {
|
||||
return out;
|
||||
}
|
||||
|
||||
inline f32 JMAFastSqrt(f32 input) {
|
||||
inline f32 JMAFastSqrt(register f32 input) {
|
||||
if (input > 0.0f) {
|
||||
f32 tmp = __frsqrtes(input);
|
||||
return tmp * input;
|
||||
register f32 out;
|
||||
asm {
|
||||
frsqrte out, input
|
||||
}
|
||||
return out * input;
|
||||
} else {
|
||||
return input;
|
||||
}
|
||||
return input;
|
||||
}
|
||||
|
||||
namespace JMath {
|
||||
|
||||
Reference in New Issue
Block a user