projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
New test.
[ardour.git]
/
libs
/
ardour
/
globals.cc
diff --git
a/libs/ardour/globals.cc
b/libs/ardour/globals.cc
index e07437ce9df954efe0d57ce1e965245333690add..3a37073e29d2997b9318cc59152cc0e7802827b2 100644
(file)
--- a/
libs/ardour/globals.cc
+++ b/
libs/ardour/globals.cc
@@
-34,7
+34,7
@@
#endif
#ifdef LXVST_SUPPORT
#endif
#ifdef LXVST_SUPPORT
-#include "ardour/
vstfx
.h"
+#include "ardour/
linux_vst_support
.h"
#endif
#ifdef AUDIOUNIT_SUPPORT
#endif
#ifdef AUDIOUNIT_SUPPORT
@@
-454,9
+454,14
@@
ARDOUR::setup_fpu ()
MXCSR = _mm_getcsr();
MXCSR = _mm_getcsr();
+#ifdef DEBUG_DENORMAL_EXCEPTION
+ /* This will raise a FP exception if a denormal is detected */
+ MXCSR &= ~_MM_MASK_DENORM;
+#endif
+
switch (Config->get_denormal_model()) {
case DenormalNone:
switch (Config->get_denormal_model()) {
case DenormalNone:
- MXCSR &= ~(_MM_FLUSH_ZERO_ON
|0x800
0);
+ MXCSR &= ~(_MM_FLUSH_ZERO_ON
| 0x4
0);
break;
case DenormalFTZ:
break;
case DenormalFTZ:
@@
-468,14
+473,14
@@
ARDOUR::setup_fpu ()
case DenormalDAZ:
MXCSR &= ~_MM_FLUSH_ZERO_ON;
if (fpu.has_denormals_are_zero()) {
case DenormalDAZ:
MXCSR &= ~_MM_FLUSH_ZERO_ON;
if (fpu.has_denormals_are_zero()) {
- MXCSR |= 0x
800
0;
+ MXCSR |= 0x
4
0;
}
break;
case DenormalFTZDAZ:
if (fpu.has_flush_to_zero()) {
if (fpu.has_denormals_are_zero()) {
}
break;
case DenormalFTZDAZ:
if (fpu.has_flush_to_zero()) {
if (fpu.has_denormals_are_zero()) {
- MXCSR |= _MM_FLUSH_ZERO_ON | 0x
800
0;
+ MXCSR |= _MM_FLUSH_ZERO_ON | 0x
4
0;
} else {
MXCSR |= _MM_FLUSH_ZERO_ON;
}
} else {
MXCSR |= _MM_FLUSH_ZERO_ON;
}