Re: [LAD] Mixing audio: Implementing pan and balance

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <linux-audio-dev@...>
Date: Sunday, March 24, 2013 - 9:50 am

Am 24.03.2013 09:46, schrieb Raphaël BOLLEN:

I use when ever possible SSE2 to avoid denormals, compile with -msse2
-mfpmath=sse
flags and implement as followed:

///////////////////////// DENORMAL PROTECTION WITH SSE /////////////////

#ifdef __SSE__
/* On Intel set FZ (Flush to Zero) and DAZ (Denormals Are Zero)
flags to avoid costly denormals */
#ifdef __SSE3__
#include
inline void AVOIDDENORMALS()
{
_MM_SET_FLUSH_ZERO_MODE(_MM_FLUSH_ZERO_ON);
_MM_SET_DENORMALS_ZERO_MODE(_MM_DENORMALS_ZERO_ON);
}
#else
#include
inline void AVOIDDENORMALS()
{
_MM_SET_FLUSH_ZERO_MODE(_MM_FLUSH_ZERO_ON);
}
#endif //__SSE3__

#else
inline void AVOIDDENORMALS() {}
#endif //__SSE__

//////////////////////////////////////////////////////////////////////////////////////////////////////////

now run once
AVOIDDENORMALS();

somewhere in init()

_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@lists.linuxaudio.org
http://lists.linuxaudio.org/listinfo/linux-audio-dev

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[LAD] Mixing audio: Implementing pan and balance, Tim E. Real, (Tue Mar 12, 5:23 am)
Re: [LAD] Mixing audio: Implementing pan and balance, Fons Adriaensen, (Tue Mar 12, 9:56 am)
Re: [LAD] Mixing audio: Implementing pan and balance, Tim E. Real, (Tue Mar 12, 8:25 pm)
Re: [LAD] Mixing audio: Implementing pan and balance, Fons Adriaensen, (Tue Mar 12, 9:22 pm)
Re: [LAD] Mixing audio: Implementing pan and balance, Tim E. Real, (Wed Mar 13, 8:16 am)
Re: [LAD] Mixing audio: Implementing pan and balance, Paul Davis, (Wed Mar 13, 11:34 am)
Re: [LAD] Mixing audio: Implementing pan and balance, Paul Davis, (Tue Mar 12, 8:28 pm)
Re: [LAD] Mixing audio: Implementing pan and balance, Tim E. Real, (Tue Mar 12, 9:15 pm)
Re: [LAD] Mixing audio: Implementing pan and balance, Geoff Beasley, (Tue Mar 12, 9:41 am)
Re: [LAD] Mixing audio: Implementing pan and balance, Tim E. Real, (Tue Mar 12, 7:08 pm)
Re: [LAD] Mixing audio: Implementing pan and balance, Jörn Nettingsmeier, (Thu Mar 14, 10:42 am)
Re: [LAD] Mixing audio: Implementing pan and balance, Tim E. Real, (Fri Mar 15, 11:57 pm)
Re: [LAD] Mixing audio: Implementing pan and balance, Paul Davis, (Thu Mar 14, 11:37 am)
Re: [LAD] Mixing audio: Implementing pan and balance, Jörn Nettingsmeier, (Thu Mar 14, 6:50 pm)
Re: [LAD] Mixing audio: Implementing pan and balance, Ralf Mardorf, (Sat Mar 16, 10:17 am)
Re: [LAD] Mixing audio: Implementing pan and balance, Fred Gleason, (Sat Mar 16, 11:51 pm)
Re: [LAD] Mixing audio: Implementing pan and balance, Ricardus Vincente, (Sat Mar 16, 7:47 pm)
Re: [LAD] Mixing audio: Implementing pan and balance, Paul Davis, (Sun Mar 17, 10:54 am)
[LAD] OT: Mixing audio: Implementing pan and balance, Ralf Mardorf, (Sat Mar 16, 2:20 pm)
Re: [LAD] Mixing audio: Implementing pan and balance, Paul Davis, (Sat Mar 16, 1:25 pm)
Re: [LAD] Mixing audio: Implementing pan and balance, Fons Adriaensen, (Sat Mar 16, 6:23 pm)
Re: [LAD] Mixing audio: Implementing pan and balance, Raphaël BOLLEN, (Sat Mar 23, 5:05 pm)
Re: [LAD] Mixing audio: Implementing pan and balance, Raphaël BOLLEN, (Sun Mar 24, 8:07 am)
Re: [LAD] Mixing audio: Implementing pan and balance, Raphaël BOLLEN, (Sun Mar 24, 8:46 am)
Re: [LAD] Mixing audio: Implementing pan and balance, hermann meyer, (Sun Mar 24, 9:50 am)
Re: [LAD] Mixing audio: Implementing pan and balance, Raphaël BOLLEN, (Sun Mar 24, 10:10 am)
Re: [LAD] Mixing audio: Implementing pan and balance, Jörn Nettingsmeier, (Sun Mar 24, 12:57 am)
Re: [LAD] Mixing audio: Implementing pan and balance, Fons Adriaensen, (Sun Mar 24, 11:57 am)
Re: [LAD] Mixing audio: Implementing pan and balance, Raphaël BOLLEN, (Sun Mar 24, 1:01 pm)
Re: [LAD] Mixing audio: Implementing pan and balance, Fons Adriaensen, (Sun Mar 24, 3:11 pm)
Re: [LAD] Mixing audio: Implementing pan and balance, Raphaël BOLLEN, (Sun Mar 24, 4:18 pm)
[LAD] zita-mu1 denormals, Fons Adriaensen, (Wed Mar 27, 11:48 am)
Re: [LAD] zita-mu1 denormals, Raphaël BOLLEN, (Wed Mar 27, 2:21 pm)
Re: [LAD] Mixing audio: Implementing pan and balance, Ralf Mardorf, (Sat Mar 16, 8:28 pm)
Re: [LAD] Mixing audio: Implementing pan and balance, Ralf Mardorf, (Sat Mar 16, 10:21 am)
Re: [LAD] Mixing audio: Implementing pan and balance, Paul Davis, (Thu Mar 14, 7:01 pm)
Re: [LAD] Mixing audio: Implementing pan and balance, Tim E. Real, (Tue Mar 12, 7:21 pm)
Re: [LAD] Mixing audio: Implementing pan and balance, Paul Davis, (Tue Mar 12, 7:13 pm)
Re: [LAD] Mixing audio: Implementing pan and balance, Tim E. Real, (Tue Mar 12, 7:44 pm)