x86 Instruction Set Reference
FSQRT
Square Root
Opcode | Mnemonic | Description |
---|---|---|
D9 FA |
FSQRT |
Computes square root of ST(0) and stores the result in ST(0). |
Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Computes the square root of the source value in the ST(0) register and stores the result in ST(0). The following table shows the results obtained when taking the square root of various classes of numbers, assuming that neither overflow nor underflow occurs.
|
Operation |
---|
ST(0) = SquareRoot(ST(0)); |
FPU flags affected |
---|
C1 Set to 0 if stack underflow occurred. Set if result was rounded up; cleared otherwise. C0, C2, C3 Undefined. |
Floating-Point Exceptions | ||||||||
---|---|---|---|---|---|---|---|---|
|
Protected Mode Exceptions | ||
---|---|---|
|
Real-Address Mode Exceptions | ||
---|---|---|
|
Virtual-8086 Mode Exceptions | ||
---|---|---|
|
Instruction | Latency | Throughput | Execution Unit |
---|---|---|---|
CPUID | 0F3n/0F2n | 0F3n/0F2n | 0F2n |
FSQRT SP | 30/23 | 30/23 | FP_DIV |
FSQRT DP | 40/38 | 40/38 | FP_DIV |
FSQRT EP | 44/43 | 44/43 | FP_DIV |