[PATCH 14/25] math: Use acosh from CORE-MATH
DJ Delorie
dj@redhat.com
Wed Sep 10 17:18:07 GMT 2025
Wilco Dijkstra <Wilco.Dijkstra@arm.com> writes:
> Since we force use of -std=gnu11, we don't really need a suffix [1] unless we
> need to force the type to unsigned or to a wider type. Eg. you need to write
> 1ULL << x if you want a 64-bit shift.
>
> Note this code does both the above as well as this:
>
> + if (__glibc_unlikely (u >= (uint64_t) 0x7ff0000000000000ull))
>
> So it would be good to standardize all this a bit. Many existing inline 64-bit constants
> are simply sign, exponent and mantissa masks, for which we already have defines.
We've been using UINT64_C until now, and many files have that, including
CORE-MATH files. I'd prefer consistency across all the files if that's
possible.
More information about the Libc-alpha
mailing list