Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> 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 :)

 help



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

I skimmed the standard and POSIX, but couldn’t find anything that an implementation is required to support FENV_ACCESS.



Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: