JUCE
Functions
juce::dsp::util Namespace Reference

Functions

void snapToZero (float &x) noexcept
 Use this function to prevent denormals on intel CPUs. More...
 

Function Documentation

◆ snapToZero()

void juce::dsp::util::snapToZero ( float &  x)
noexcept

Use this function to prevent denormals on intel CPUs.

This function will work with both primitives and simple containers.

References juce::ignoreUnused(), and JUCE_SNAP_TO_ZERO.

Referenced by juce::dsp::CmplxSIMDOps< std::complex< Scalar > >::muladd(), and juce::dsp::StateVariableFilter::Filter< SampleType >::snapToZero().