COP1 010001 |
fmt |
0 00000 |
fs |
fd |
SQRT 000100 |
6 |
5 |
5 |
5 |
5 |
6 |
SQRT.fmt |
Floating Point Square Root | |
SQRT.S fd, fs |
MIPS32 |
Floating Point Square Root |
SQRT.D fd, fs |
MIPS32 |
Floating Point Square Root |
Floating Point Square Root
To compute the square root of an FP value.
FPR[fd] = SQRT(FPR[fs])
The square root of the value in FPR fs is calculated to infinite precision, rounded according to the current rounding mode in FCSR, and placed into FPR fd. The operand and result are values in format fmt.
If the value in FPR fs corresponds to - 0, the result is - 0.
If the value in FPR fs is less than 0, an Invalid Operation condition is raised.
The fields fs and fd must specify FPRs valid for operands of type fmt. If the fields are not valid, the result is UNPREDICTABLE.
The operand must be a value in format fmt; if it is not, the result is UNPREDICTABLE and the value of the operand
FPR becomes UNPREDICTABLE.
StoreFPR(fd, fmt, SquareRoot(ValueFPR(fs, fmt)))
Coprocessor Unusable, Reserved Instruction
Invalid Operation, Inexact, Unimplemented Operation