FSIN

正弦

stableVMJITAOTinstruction

编码

操作码指令Op/En64 位兼容/传统说明
D9 FEFSIN有效有效将ST( 0) 替换为正弦的大致值。

实测开销

正在从 arch-data 加载实测数据...

说明

在寄存器 ST (0) 中计算 源操作数 正弦的近似值,并将结果存储于 ST (0) 。 源操作数必须用弧度给出,并且必须在-263到+263之间. 下表显示

假定不发生下流,在采用各类数字的正弦时取得的结果。

FSIN 结果

SRC (ST(0))DEST (ST(0))
-*
-F- 1 to + 1
-0-0
+0+0
+F- 1 to +1
+*
纳恩纳恩

行动

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;

FPU Flags Affected

C1                  Set to 0 if stack underflow occurred.

                    Set if result was rounded up; cleared otherwise.

C2                  Set to 1 if outside range (-263 < source operand < +263); otherwise, set to 0.

C0, C3              Undefined.

浮点 例外

#IS         Stack underflow occurred.
#IA         Source operand is an SNaN value, , or unsupported format.
#D          Source operand is a denormal value.
#P          Value cannot be represented exactly in destination format.

异常

保护模式
#NMCR0.EM[bit 2] 或 CR0.TS[bit 3] = 1.
#MF如果存在待决的x87 FPU例外.
#UD如果使用 LOCK 前缀 。
实地址模式
与保护模式中的例外相同.
虚拟 8086 模式
与保护模式中的例外相同.
兼容模式
与保护模式中的例外相同.
64 位模式
与保护模式中的例外相同.

来源