https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81906
--- Comment #11 from joseph at codesourcery dot com <joseph at codesourcery dot com> --- (That's essentially what the generic C implementation of rint in glibc does. I make no assertions about whether inlining this long expansion of rint for SSE, or even the shorter -fno-rounding-math version, actually makes sense.)