FRSQ#

Format: FRSQ dest, source.

Phase0: FRSQ W0{.F16.E0.E1}, S0{.F16.E0|.F16.E1}{.ABS}{.NEG}

Phase1: -

Phase2: -

Description:

W0 = 1 / sqrt(S0)

Special cases:

FRSQ(Any NaN) = +NaN
FRSQ (+INF) = +0
FRSQ (+/-0) = +/-INF
FRSQ( -X) = +NaN
FRSQ(1.0) = 1.0 exactly

Example:

void main()
{
    fragColor = 1.0 / sqrt(a);
}
0    : frsq r0, sh0