Contents

fastMathEnabled

A Boolean value that indicates whether the compiler can perform optimizations for floating-point arithmetic that may violate the IEEE 754 standard.

Declaration

var fastMathEnabled: Bool { get set }

Discussion

The default value is true. A true value also enables the high-precision variant of math functions for single-precision floating-point scalar and vector types.

See Also

Related Documentation

  • Metal Shading Language Guide
  • Metal Programming Guide

Configuring the compiler options