hypot division by zero

Benjamin Kosnik bkoz@redhat.com
Wed Oct 23 08:43:00 GMT 2002


>the hypot functions in libstdc++-v3/libmath/stubs.c
>makes a "division by zero"  exception when hypot(0, 0) is called.
>
>Some thing like:
>
>if (s == 0) return (0.);
>
>is missing.
>
>Other hypot implementations have such a test.

You might want to submit a testcase, and a patch.

-benjamin



More information about the Libstdc++ mailing list