On Wed, 13 Sep 2017, Martin Jambor wrote:

> I was just surprised by the glibc check, what would you consider a
> recent-enough glibc?  Or is the check mainly necessary to ensure we
> are indeed using glibc and not some other libc (and thus something
> like we do for TARGET_LIBC_PROVIDES_SSP would do)?

It looks like SSE4.1 {ceil,floor,rint}{,f} were added in glibc commit 
ad0f5cad15f1c76faf3843b3e189dead2c05cfcc, nearbyint{,f} in 
581d30e386b9567b973a65d0bc82af782ac078ed, so 2.15 or later for all those 
functions (the target glibc version is known when GCC is configured, 
whether from configure examining headers or from --with-glibc-version).

glibc does not have SSE4.1 {trunc,roundeven}{,f} at present (missing trunc 
is <https://sourceware.org/bugzilla/show_bug.cgi?id=20142>).

-- 
Joseph S. Myers
jos...@codesourcery.com

Reply via email to