Comment

Comment by xmmrm

Surprisingly [sincosf fusion] only happened with -Ofast and not with -O3.

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

parent xmmrm 6 years ago

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton