[PATCH 11/15] math: Fix acos template for arguments greater than 1

Joseph Myers josmyers@redhat.com
Wed Mar 27 17:14:33 GMT 2024


On Wed, 27 Mar 2024, Adhemerval Zanella wrote:

> The template is used by some ABsI for static build, and it fails set
> the expected floating exceptions if the argument is outside of the
> range (on x86_64 this triggers an overflow calculation in
> __ieee754_acos).

Patches 11 through 15 all seem incorrect; it's the responsibility of the 
__ieee754_* functions to raise the correct exceptions, not of the 
wrappers.  Please make sure you don't have a compiler with a bug like 
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95115 miscompiling those 
__ieee754_* functions.

-- 
Joseph S. Myers
josmyers@redhat.com



More information about the Libc-alpha mailing list