Browse Source

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

tags/2021-05-28
jules 10 years ago
parent
commit
3dc8a96265
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      modules/juce_core/maths/juce_MathsFunctions.h

+ 2
- 2
modules/juce_core/maths/juce_MathsFunctions.h 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 /** This macro can be applied to a float variable to check whether it contains a denormalised
value, and to normalise it if necessary. value, and to normalise it if necessary.
On CPUs that aren't vulnerable to denormalisation problems, this will have no effect. 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 #else
#define JUCE_UNDENORMALISE(x) #define JUCE_UNDENORMALISE(x)
#endif #endif


Loading…
Cancel
Save