1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-27 02:20:05 +00:00

Made the JUCE_UNDENORMALISE macro active on 64-bit intel, because apparently it actually is still an issue on that platform.

This commit is contained in:
jules 2015-03-10 11:20:42 +00:00
parent 726279be09
commit 3dc8a96265

View file

@ -495,12 +495,12 @@ NumericType square (NumericType n) noexcept
}
//==============================================================================
#if (JUCE_INTEL && JUCE_32BIT) || defined (DOXYGEN)
#if JUCE_INTEL || defined (DOXYGEN)
/** This macro can be applied to a float variable to check whether it contains a denormalised
value, and to normalise it if necessary.
On CPUs that aren't vulnerable to denormalisation problems, this will have no effect.
*/
#define JUCE_UNDENORMALISE(x) x += 1.0f; x -= 1.0f;
#define JUCE_UNDENORMALISE(x) { (x) += 1.0f; (x) -= 1.0f; }
#else
#define JUCE_UNDENORMALISE(x)
#endif