Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
213a685c
Commit
213a685c
authored
Aug 29, 1996
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move backup definition for hypot() to Python/hypot.c.
parent
ace527cb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
27 deletions
+0
-27
Modules/mathmodule.c
Modules/mathmodule.c
+0
-27
No files found.
Modules/mathmodule.c
View file @
213a685c
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment