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

From: Nikita Zlobin <cook60020tmp@email-addr-hidden>
Date: Fri Nov 23 2018 - 19:33:24 EET

In Fri, 23 Nov 2018 14:18:01 +0000
Gordonjcp <gordonjcp@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.

Of course, if clipping-resistance is not important (special precaucions
like keeping signal level in range of e.g. -6db or -12db could emulate
it).
_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@lists.linuxaudio.org
https://lists.linuxaudio.org/listinfo/linux-audio-dev
Received on Fri Nov 23 20:15:02 2018

This archive was generated by hypermail 2.1.8 : Fri Nov 23 2018 - 20:15:02 EET