Browse Source

Made it possible for users to override the definition of JUCE_SNAP_TO_ZERO

tags/2021-05-28
jules 8 years ago
parent
commit
59b7c943c8
1 changed files with 6 additions and 4 deletions
  1. +6
    -4
      modules/juce_audio_basics/buffers/juce_FloatVectorOperations.h

+ 6
- 4
modules/juce_audio_basics/buffers/juce_FloatVectorOperations.h View File

@@ -23,10 +23,12 @@
namespace juce namespace juce
{ {
#if JUCE_INTEL
#define JUCE_SNAP_TO_ZERO(n) if (! (n < -1.0e-8f || n > 1.0e-8f)) n = 0;
#else
#define JUCE_SNAP_TO_ZERO(n) ignoreUnused (n)
#ifndef JUCE_SNAP_TO_ZERO
#if JUCE_INTEL
#define JUCE_SNAP_TO_ZERO(n) if (! (n < -1.0e-8f || n > 1.0e-8f)) n = 0;
#else
#define JUCE_SNAP_TO_ZERO(n) ignoreUnused (n)
#endif
#endif #endif
class ScopedNoDenormals; class ScopedNoDenormals;


Loading…
Cancel
Save