Use ProcessThread::init () to set up denormal protection
Modifying the MXCSR register only affects the current thread.
This commit is contained in:
parent
07b685c371
commit
4abb907a82
|
@ -37,7 +37,7 @@ public:
|
|||
ProcessThread ();
|
||||
~ProcessThread ();
|
||||
|
||||
static void init();
|
||||
void init();
|
||||
|
||||
void get_buffers ();
|
||||
void drop_buffers ();
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
|
||||
#include <iostream>
|
||||
|
||||
#include "ardour/ardour.h"
|
||||
#include "ardour/buffer.h"
|
||||
#include "ardour/buffer_manager.h"
|
||||
#include "ardour/buffer_set.h"
|
||||
|
@ -41,10 +42,13 @@ Glib::Threads::Private<ThreadBuffers> ProcessThread::_private_thread_buffers (re
|
|||
void
|
||||
ProcessThread::init ()
|
||||
{
|
||||
/* denormal protection is per thread */
|
||||
ARDOUR::setup_fpu ();
|
||||
}
|
||||
|
||||
ProcessThread::ProcessThread ()
|
||||
{
|
||||
init ();
|
||||
}
|
||||
|
||||
ProcessThread::~ProcessThread ()
|
||||
|
|
Loading…
Reference in New Issue