fsin
Sine
Computes sine of ST(0) (in radians).
Pseudocode Operation
ST(0) ← sin(ST(0))
Encoding
Operands
Related
More in x87 FPU
Reference
Instruction Forms
| Opcode | Instruction | Op/En | 64/32-bit Mode | CPUID | Description |
|---|---|---|---|---|---|
| D9 FE | FSIN | Valid Valid | Replace ST(0) with the approximate of its sine. |
Description
Computes an approximation of the sine of the source operand in register ST(0) and stores the result in ST(0). The source operand must be given in radians and must be within the range -263 to +263. The following table shows the results obtained when taking the sine of various classes of numbers, assuming that underflow does not occur. Table 3-37. FSIN Results SRC (ST(0)) DEST (ST(0)) - ∞ *
- F - 1 to + 1
- 0 -0
+ 0 + 0 + F - 1 to +1
+ ∞ * NaN NaN
Operation
IF -263 < ST(0) < 263 THEN C2 := 0; ST(0) := fsin(ST(0)); // approximation of the mathematical sin function ELSE (* Source operand out of range *) C2 := 1; FI;