summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1996-08-29 18:13:16 (GMT)
committerGuido van Rossum <guido@python.org>1996-08-29 18:13:16 (GMT)
commit213a685cd8ad210a7873544084b747f408e83921 (patch)
tree3cc593fff6c33e4ab78fbbf3d17a1064b833e58f
parentace527cbc2109311caffe896445db2f8751906b8 (diff)
downloadcpython-213a685cd8ad210a7873544084b747f408e83921.zip
cpython-213a685cd8ad210a7873544084b747f408e83921.tar.gz
cpython-213a685cd8ad210a7873544084b747f408e83921.tar.bz2
Move backup definition for hypot() to Python/hypot.c.
-rw-r--r--Modules/mathmodule.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/Modules/mathmodule.c b/Modules/mathmodule.c
index 4ebb26e..12effa5 100644
--- a/Modules/mathmodule.c
+++ b/Modules/mathmodule.c
@@ -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