fres
Floating Reciprocal Estimate Single
Estimates the reciprocal of a single-precision floating-point number.
Details
The fres instruction estimates the reciprocal of a single-precision floating-point number in an FPR and places the result into another FPR. If the input value is finite and has an unbiased exponent greater than +127, it is interpreted as an Infinity.
Pseudocode Operation
if 'fres[.]' then
FT <- estimate_reciprocal(FB)
Programming Note
The fres instruction provides a fast estimate of the reciprocal for single-precision floating-point numbers. It's useful in performance-critical applications where exact precision is not required, but speed is essential. Be cautious with inputs that have an unbiased exponent greater than +127, as they are treated as Infinity, which might lead to unexpected results if not handled properly.
Example
Encoding
Operands
-
FRT
Target -
FRB
Source -
FT
Target Floating-Point Register -
FB
Source Floating-Point Register