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
b522a9ce
Commit
b522a9ce
authored
Nov 01, 2001
by
Gabriel Dos Reis
Committed by
Gabriel Dos Reis
Nov 01, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* include/bits/std_complex.h (abs): Tweak.
From-SVN: r46693
parent
7a1929e1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletions
+2
-1
libstdc++-v3/ChangeLog
+1
-0
libstdc++-v3/include/bits/std_complex.h
+1
-1
No files found.
libstdc++-v3/ChangeLog
View file @
b522a9ce
...
...
@@ -2,6 +2,7 @@
* include/bits/std_complex.h (_Norm_helper): New class template.
(norm): Tweak.
(abs): Tweak.
2001-10-31 Benjamin Kosnik <bkoz@redhat.com>
...
...
libstdc++-v3/include/bits/std_complex.h
View file @
b522a9ce
...
...
@@ -405,7 +405,7 @@ namespace std
{
_Tp
__x
=
__z
.
real
();
_Tp
__y
=
__z
.
imag
();
const
_Tp
__s
=
abs
(
__x
)
+
abs
(
__y
);
const
_Tp
__s
=
abs
(
abs
(
__x
),
abs
(
__y
)
);
if
(
__s
==
_Tp
())
// well ...
return
__s
;
__x
/=
__s
;
...
...
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