Add a couple comments to the code

This commit is contained in:
Chris Robinson
2012-10-26 20:11:59 -07:00
parent f02a9935c6
commit 3c3e3b123b
+2
View File
@@ -908,8 +908,10 @@ static __inline ALfloat aluF2F(ALfloat val)
{ return val; }
static __inline ALint aluF2I(ALfloat val)
{
/* Clamp the value between -1 and +1. This handles that without branching. */
val = val+1.0f - fabsf(val-1.0f);
val = (val-2.0f + fabsf(val+2.0f)) * 0.25;
/* Convert to a signed integer, between -2147483647 and +2147483647. */
return fastf2i((ALfloat)(val*2147483647.0));
}
static __inline ALuint aluF2UI(ALfloat val)