This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
hypot division by zero
- From: "Dehmel, Rüdiger" <de at lmnet dot de>
- To: "'libstdc++ at gcc dot gnu dot org'" <libstdc++ at gcc dot gnu dot org>
- Date: Wed, 23 Oct 2002 09:15:52 +0200
- Subject: hypot division by zero
Hello,
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.
Ruediger