Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
2b398912
Commit
2b398912
authored
Jun 07, 1993
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(atan2): For x <= 0, lump y == 0 with y > 0
to get the right result in 0, -1 case. From-SVN: r4645
parent
e1027c77
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
gcc/ginclude/math-68881.h
+8
-8
No files found.
gcc/ginclude/math-68881.h
View file @
2b398912
...
@@ -155,19 +155,19 @@ atan2 (double y, double x)
...
@@ -155,19 +155,19 @@ atan2 (double y, double x)
}
}
else
else
{
{
if
(
y
>
0
)
if
(
y
<
0
)
{
{
if
(
-
x
>
y
)
if
(
-
x
>
-
y
)
return
pi
+
atan
(
y
/
x
);
return
-
pi
+
atan
(
y
/
x
);
else
else
return
pi_over_2
-
atan
(
x
/
y
);
return
-
pi_over_2
-
atan
(
x
/
y
);
}
}
else
else
{
{
if
(
-
x
>
-
y
)
if
(
-
x
>
y
)
return
-
pi
+
atan
(
y
/
x
);
return
pi
+
atan
(
y
/
x
);
else
if
(
y
<
0
)
else
if
(
y
>
0
)
return
-
pi_over_2
-
atan
(
x
/
y
);
return
pi_over_2
-
atan
(
x
/
y
);
else
else
{
{
double
value
;
double
value
;
...
...
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