Re: sqrtl behavior inconsistent with sqrt and sqrtf

2020-10-27 Thread Ken Brown via Cygwin
On 10/27/2020 7:17 AM, airplanemath via Cygwin wrote: Compiling and running the attached program with the command line below produces the output below: $ gcc -O0 -Og test_sqrt.c -o test_sqrt && ./test_sqrt Long double: -inf -inf Double: -inf -nan Float: -inf -nan I suspect the beha

Re: sqrtl behavior inconsistent with sqrt and sqrtf

2020-10-27 Thread airplanemath via Cygwin
airplanemath via Cygwin writes: > Compiling and running the attached program with the command line below > produces the output below: > > $ gcc -O0 -Og test_sqrt.c -o test_sqrt && ./test_sqrt > Long double: -inf -inf > Double: -inf -nan > Float: -inf -nan > > I suspect the behavior for