• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Float denormal automatically flushed to zero in CoreAudio?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Float denormal automatically flushed to zero in CoreAudio?
      • From: James McCartney <email@hidden>
    • Re: Float denormal automatically flushed to zero in CoreAudio?
      • From: Robert Bielik <email@hidden>
  • Prev by Date: Re: SampleRate Conversion
  • Next by Date: Re: Float denormal automatically flushed to zero in CoreAudio?
  • Previous by thread: Generating a rising sine tone with sinf() (Adam Bellard)
  • Next by thread: Re: Float denormal automatically flushed to zero in CoreAudio?
  • Index(es):
    • Date
    • Thread