From 3dc8a96265d70e1b8cfa62983a80df5556ed6cd7 Mon Sep 17 00:00:00 2001 From: jules Date: Tue, 10 Mar 2015 11:20:42 +0000 Subject: [PATCH] Made the JUCE_UNDENORMALISE macro active on 64-bit intel, because apparently it actually is still an issue on that platform. --- modules/juce_core/maths/juce_MathsFunctions.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/juce_core/maths/juce_MathsFunctions.h b/modules/juce_core/maths/juce_MathsFunctions.h index 9e0781e116..d15fd8bdeb 100644 --- a/modules/juce_core/maths/juce_MathsFunctions.h +++ b/modules/juce_core/maths/juce_MathsFunctions.h @@ -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