[LAD] Is -ffast-math safe for audio?

Nikita Zlobin cook60020tmp at mail.ru
Fri Nov 23 19:30:47 CET 2018


In Fri, 23 Nov 2018 17:56:38 +0000
Gordonjcp <gordonjcp at gjcp.net> wrote:

> On Fri, Nov 23, 2018 at 10:33:24PM +0500, Nikita Zlobin wrote:
> > In Fri, 23 Nov 2018 14:18:01 +0000
> > Gordonjcp <gordonjcp at gjcp.net> wrote:
> >   
> > > On Fri, Nov 23, 2018 at 02:09:02PM +0100, Robin Gareus wrote:  
> > > > On 11/23/2018 01:00 PM, Will Godfrey wrote:
> > > > [...]    
> > > > > Thanks for going into this in such detail Robin. I never
> > > > > realised fp stuff could be *quite* so, umm, approximate!    
> > > > 
> > > > Depending on context and the maths, the difference may not
> > > > matter at all, or may be off completely..    
> > > 
> > > Surely the answer is just to use 16-bit ints for everything,
> > > then...? 
> > 
> > Let me note - it would be at least 32-bit int, since in 32bit float
> > significand is 23bit.  
> 
> We don't need that much precision, we only have 10-bit ears.
> 

Oh... when you wrote "for everything" - i thought, it includes
processing too, not just listening.


More information about the Linux-audio-dev mailing list