mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Made it possible for users to override the definition of JUCE_SNAP_TO_ZERO
This commit is contained in:
parent
c7be3ed55a
commit
59b7c943c8
1 changed files with 6 additions and 4 deletions
|
|
@ -23,10 +23,12 @@
|
|||
namespace juce
|
||||
{
|
||||
|
||||
#if JUCE_INTEL
|
||||
#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
|
||||
#else
|
||||
#define JUCE_SNAP_TO_ZERO(n) ignoreUnused (n)
|
||||
#endif
|
||||
#endif
|
||||
class ScopedNoDenormals;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue