hypotl(LDBL_MAX, 0.0L) = inf
airplanemath
airplanemath@aol.com
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...
Name: test_cabs_hypot.c
Type: text/x-csrc
Size: 1042 bytes
Desc: STC showing behavior of hypotl compared to hypot and hypotf
URL: <https://cygwin.com/pipermail/cygwin/attachments/20210417/a4b606d5/attachment.bin>
More information about the Cygwin
mailing list