https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126305

--- Comment #16 from dave.anglin at bell dot net ---
On 2026-07-17 9:16 p.m., kargl at gcc dot gnu.org wrote:
> I think what you/(we) need to do is something like
> 
> #if defined(HAVE_ATAN) && !defined(HAVE_ATANL)
> #define HAVE_ATANL 1
> long double atanl(long double);
> 
> long double
> atanl(long double x)
> {
> #ifdef __HPUX__
>     return ((long double)atanq((__float128)x));
> #else
>    return ((long double)atan((double)x));
> #endif
> }
> #endif
> 
> The #ifdef __HPUX__ guards against other targets that cannot
> do the cast to __float128, but have a missing long double.

That's a good idea but I think we also need to check that libquadmath support
is enabled.

Reply via email to