HMM_FastInverseSquareRoot indentation adjustment

This commit is contained in:
Kyle De'Vir
2016-05-29 04:04:16 +10:00
parent 6a1e42ed74
commit 116e3bb41b

View File

@@ -355,19 +355,19 @@ HMM_LengthSquareRoot(hmm_vec3 A)
HINLINE float
HMM_FastInverseSquareRoot(float Number)
{
long i;
float x2, y;
const float threehalfs = 1.5f;
long i;
float x2, y;
const float threehalfs = 1.5f;
x2 = Number * 0.5f;
y = Number;
i = * ( long * ) &y; // evil floating point bit level hacking
i = 0x5f3759df - ( i >> 1 ); // what the fuck?
y = * ( float * ) &i;
x2 = Number * 0.5f;
y = Number;
i = * ( long * ) &y; // evil floating point bit level hacking
i = 0x5f3759df - ( i >> 1 ); // what the fuck?
y = * ( float * ) &i;
y = y * ( threehalfs - ( x2 * y * y ) );
return ( y );
return ( y );
}
HINLINE float