hypotl(LDBL_MAX, 0.0L) = inf
Sat Apr 17 14:02:07 GMT 2021
Given that hypot(DBL_MAX, 0.0) = DBL_MAX and hypotf(FLT_MAX, 0.0f) =
FLT_MAX, I suspect this is a problem in hypotl. Am I missing something?
There is a similar difference in cabsl compared to cabs and cabsf, which
probably has a similar cause.
I attached my test case, which I compile with
gcc -Og -O0 test_cabs_hypot.c -o test_cabs_hypot
What should I expect here?
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 1042 bytes
Desc: STC showing behavior of hypotl compared to hypot and hypotf
More information about the Cygwin