Skip to content

vector.TrigonometryMathFlags enum

← Attribute reference

Trigonometric math permissions and requirements. AFN permits native approximation with target-dependent zero signs unless preserve is requested. Other fast-math permissions retain their meanings; preserve does not require correctly rounded nonzero approximations.

Cases

Keyword Value Description
reassoc 1 Allow reassociation.
nnan 2 Assume floating-point operands and results are not NaN, independently for every vector element.
ninf 4 Assume floating-point operands and results are not infinite, independently for every vector element.
nsz 8 Permit treating positive and negative zero as interchangeable; this does not exclude zero results.
arcp 16 Allow reciprocal approximation.
contract 32 Allow contractions (FMA).
afn 64 Approximate functions.
fast 127 All of the above.
preserve 128 Require source-defined signs of zero results, independently of AFN approximation permission. This positive requirement overrides NSZ and is not included in fast.

Used by

  • vector.cosf.math
  • vector.costurnsf.math
  • vector.sinf.math
  • vector.sinturnsf.math