This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: hypot division by zero


>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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]