]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Move backup definition for hypot() to Python/hypot.c.
authorGuido van Rossum <guido@python.org>
Thu, 29 Aug 1996 18:13:16 +0000 (18:13 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 29 Aug 1996 18:13:16 +0000 (18:13 +0000)
Modules/mathmodule.c

index 4ebb26e45e752a8da352f46df56459b55d56518f..12effa5f46f13872f5852c4c8bc2cef07e513e79 100644 (file)
@@ -43,33 +43,6 @@ extern double modf PROTO((double, double *));
 #endif /* _MSC_VER */
 
 
-#if defined(HAVE_HYPOT)
-#ifndef _MSC_VER
-extern double hypot PROTO((double, double));
-#endif
-#else
-double hypot(x,y)
-       double x;
-       double y;
-{
-       double yx;
-
-       x = fabs(x);
-       y = fabs(y);
-       if (x < y) {
-               double temp = x;
-               x = y;
-               y = temp;
-       }
-       if (x == 0.)
-               return 0.;
-       else {
-               yx = y/x;
-               return x*sqrt(1.+yx*yx);
-       }
-}
-#endif
-
 #ifdef i860
 /* Cray APP has bogus definition of HUGE_VAL in <math.h> */
 #undef HUGE_VAL