The OpenD Programming Language

fmamath

Functions attribute, an alias for AliasSeq!(llvmFastMathFlag("contract"));.

  • 1. Allow floating-point contraction (e.g. fusing a multiply followed by an addition into a fused multiply-and-add).

Note: Can be used with all compilers.

import mir.math.common;
version(LDC)
alias fmamath = AliasSeq!(ldc.attributes.llvmFastMathFlag("contract"))

Meta