Update lmms_math.h

better sqrt
This commit is contained in:
Vesa V
2014-11-30 00:42:35 +02:00
parent 1421631f26
commit 5e6482e17b

View File

@@ -232,7 +232,7 @@ static inline float sqrt_neg( float val )
float fastSqrt( float n )
{
int i = *(int*) &n;
i = ( ( i - ( 1 << 23 ) ) >> 1 ) + ( 1 << 29 );
i = ( i + ( 127 << 23 ) ) >> 1;
return *(float*) &i;
}