Float denormal automatically flushed to zero in CoreAudio?
Float denormal automatically flushed to zero in CoreAudio?
- Subject: Float denormal automatically flushed to zero in CoreAudio?
- From: Stéphane Letz <email@hidden>
- Date: Fri, 20 Jun 2014 14:01:14 +0200
Hi,
It seems that the CoreAudio code already does "Float denormal automatically flushed to zero" kind to setting in the real-time thread before calling the application audio callback.
We usually use the following AVOIDDENORMALS macro in our code for Intel processors, but this does not seem to be needed when audio code is run with CoreAudio on OSX.
// On Intel set FZ (Flush to Zero) and DAZ (Denormals Are Zero)
// flags to avoid costly denormals
#ifdef __SSE__
#include <xmmintrin.h>
#ifdef __SSE2__
#define AVOIDDENORMALS _mm_setcsr(_mm_getcsr() | 0x8040)
#else
#define AVOIDDENORMALS _mm_setcsr(_mm_getcsr() | 0x8000)
#endif
#else
#define AVOIDDENORMALS
#endif
Can someone confirm?
Thanks.
Stéphane Letz
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden