Skip to content

FSINA

Operation

Approximates sine in radians over the reduced interval from minus pi/4 to pi/4.

Assembler Syntax

FSINA.{S|D}(z) Fn(s), Fn(d)

Privilege

Unprivileged

Required CPUID flags

FP

FPTRANSA

Repeat eligibility

REP eligible

Computes the \(\sin(x)\) reference in radians over finite \(x\) with \(|x| \le \pi/4\) after DAZ and writes an implementation-bounded S- or D-format approximation under the selected FPTRANSA accuracy contract.

The required FPTRANSA_ACCURACY contract is 0x0001.

Special values

  • Infinite source or source magnitude above \(\pi/4\): NV is generated and the result is the architectural default quiet NaN.

  • Zero source: the result is the source.

Exact anchors

  • \(\sin(+0) = +0\)

  • \(\sin(-0) = -0\)

Required properties

  • odd

  • monotonically increasing on the contract domain

  • result is in \([-\sqrt{2}/2, \sqrt{2}/2]\)

2.75in

Encodings

FSINA.{S|D}(z) Fn(s), Fn(d)

Format: Instruction format for FSINA.{S|D}(z) Fn(s), Fn(d)

Format: Instruction format for FSINA.{S|D}(z) Fn(s), Fn(d)