Joined 9 years ago
As noted, -Ofast turns on -ffast-math which turns on -funsafe-math-optimizations which "enables optimizations that allow arbitrary reassociations and transformations with no accuracy guarantees."[0] In this case, sincosf by itself is probably more accurate.
[0] https://gcc.gnu.org/wiki/FloatingPointMath
https://news.ycombinator.com/item?id=23220544
That would be formal verification.
[0] https://github.com/pornin/curve9767
[0] https://datatracker.ietf.org/doc/draft-hdevalence-cfrg-ristr...
As noted, -Ofast turns on -ffast-math which turns on -funsafe-math-optimizations which "enables optimizations that allow arbitrary reassociations and transformations with no accuracy guarantees."[0] In this case, sincosf by itself is probably more accurate.
[0] https://gcc.gnu.org/wiki/FloatingPointMath