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:
parent
726279be09
commit
3dc8a96265
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue