[libcxx-commits] [libcxx] [libc++][math] Fix undue overflowing of `std::hypot(x, y, z)` (PR #93350)

via libcxx-commits libcxx-commits at lists.llvm.org
Fri Jul 19 11:43:36 PDT 2024


PaulXiCao wrote:

> @PaulXiCao This seems to be failing with many error messages that seem legitimate:
> 
> ```
> __math/hypot.h:74:15: error: magnitude of floating-point constant too large for type 'long double'; maximum is 1.7976931348623157E+308 [-Werror,-Wliteral-range]
>       return {0x1.0p+8'190l, 0x1.0p-9'000l};
>               ^
> ```

@ldionne Should be fixed now.

https://github.com/llvm/llvm-project/pull/93350


More information about the libcxx-commits mailing list