|
|
@ -106,13 +106,13 @@ public: |
|
|
|
|
|
|
|
|
|
|
|
inline float hsFastMath::InvSqrtAppr(float x) |
|
|
|
inline float hsFastMath::InvSqrtAppr(float x) |
|
|
|
{ |
|
|
|
{ |
|
|
|
register unsigned long a = *(long*)&x; |
|
|
|
unsigned long a = *(long*)&x; |
|
|
|
register float arg = x; |
|
|
|
float arg = x; |
|
|
|
union { |
|
|
|
union { |
|
|
|
long i; |
|
|
|
long i; |
|
|
|
float f; |
|
|
|
float f; |
|
|
|
} seed; |
|
|
|
} seed; |
|
|
|
register float r; |
|
|
|
float r; |
|
|
|
|
|
|
|
|
|
|
|
extern unsigned char statSeedTable[]; |
|
|
|
extern unsigned char statSeedTable[]; |
|
|
|
|
|
|
|
|
|
|
@ -133,13 +133,13 @@ inline float hsFastMath::InvSqrtAppr(float x) |
|
|
|
|
|
|
|
|
|
|
|
inline float hsFastMath::InvSqrt(float x) |
|
|
|
inline float hsFastMath::InvSqrt(float x) |
|
|
|
{ |
|
|
|
{ |
|
|
|
register unsigned long a = *(long*)&x; |
|
|
|
unsigned long a = *(long*)&x; |
|
|
|
register float arg = x; |
|
|
|
float arg = x; |
|
|
|
union { |
|
|
|
union { |
|
|
|
long i; |
|
|
|
long i; |
|
|
|
float f; |
|
|
|
float f; |
|
|
|
} seed; |
|
|
|
} seed; |
|
|
|
register float r; |
|
|
|
float r; |
|
|
|
|
|
|
|
|
|
|
|
extern unsigned char statSeedTable[]; |
|
|
|
extern unsigned char statSeedTable[]; |
|
|
|
|
|
|
|
|
|
|
|