logoalt Hacker News

dzaima • today at 1:50 AM • 1 reply • view on HN

> gcc, however, always defines FLT_ROUNDS to 1

Well, considering that gcc doesn't support the FENV_ACCESS pragma, and as such all fesetround calls are always UB, it is valid for it to act as if the rounding mode never changes from the default :)


Replies

uecker • today at 5:20 AM

Well, it is not ok to not support FENV_ACCESS though.