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

Will J Godfrey WillGodfrey at musically.me.uk
Thu Nov 22 20:58:57 CET 2018


On Thu, 22 Nov 2018 19:28:58 +0100
David Runge <dave at sleepmap.de> wrote:

>On 2018-11-22 18:57:15 (+0100), Hermann Meyer wrote:
>> In the guitarix project we've disabled  -ffast-math several years ago,
>> when I remember right it was at gcc3, as it could lead to different
>> un-reproduciable calculations. Last option I've disabled on gcc8 now,
>> is -ffinite-math-only, this one leads to nan's and inf's in several
>> cases, which been as well not reproducible.  
>Rabbit hole stuff! SuperCollider came to a similar conclusion:
>https://github.com/supercollider/supercollider/issues/4116


Thanks a lot people. I kept thinking I was doing something wrong!

-- 
It wasn't me! (Well actually, it probably was)

... the hard part is not dodging what life throws at you,
but trying to catch the good bits.


More information about the Linux-audio-dev mailing list