rsq - Reciprocal square root

rsq - Reciprocal square root

Calling Format

rsq     dest, src{ .x | .y | .z | .w }

Operands

Name Registers
dest An output register or temporary register.
src A temporary register, input register, or floating-point constant register.

Only one component must be specified for src.

Overview

Calculates the inverse square root.

If the result of the operation is positive or negative infinity, NaN may be output.
Use the cmp instruction if you need to distinguish between NaN and positive or negative infinity.

Operation

tmp = src { .x | .y | .z | .w }
dest.x = 1 / sqrt ( tmp )
dest.y = 1 / sqrt ( tmp )
dest.z = 1 / sqrt ( tmp )
dest.w = 1 / sqrt ( tmp )

Code Example

rsq     r0,     c1.x

Timetable

12345
rsq read RCP / RSQ post write

Revision History

2011/12/20
Initial version.

CONFIDENTIAL