FlushDenormal.h 549 B

1234567891011121314
  1. /// Flush-To-Zero and Denormals-Are-Zero mode
  2. ///
  3. /// Flush-To-Zero (FTZ) and Denormals-Are-Zero (DAZ) are modes that bypass
  4. /// IEEE 754 methods of dealing with denormal floating-point numbers on x86-64
  5. /// and some x86 CPUs. They result in reduced precision for values near zero,
  6. /// but increased performance.
  7. ///
  8. /// See https://software.intel.com/en-us/articles/x87-and-sse-floating-point-assists-in-ia-32-flush-to-zero-ftz-and-denormals-are-zero-daz
  9. namespace at { namespace cpu {
  10. bool set_flush_denormal(bool on);
  11. }} // namespace at::cpu