On Thu, Nov 07, 2024 at 01:57:21PM +0800, Hongtao Liu wrote:
> > Does it turn the sNaNs into infinities or qNaNs silently?
> Yes.

Into infinities?

> > Given the rounding, flag_rounding_math should avoid the hw instructions,
> The default rounding mode for flag_rounding_math is rounding to
> nearest, so I assume !flag_rounding_math is not needed for the
> condition.

flag_rounding_math is about it being ok to change the rounding mode at
runtime.  So, with flag_rounding_mode you can't rely on the rounding mode
being to nearest, with !flag_rounding_mode we do rely on it.
So !flag_rounding_math is needed.  It is not on by default, so it isn't
a big deal...

        Jakub

Reply via email to