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
4b6243ef
Commit
4b6243ef
authored
Aug 21, 2000
by
Gabriel Dos Reis
Committed by
Gabriel Dos Reis
Aug 21, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* bits/std_cmath.h (std::abs): Overload for int and long.
From-SVN: r35837
parent
24805e80
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
libstdc++-v3/ChangeLog
+4
-0
libstdc++-v3/bits/std_cmath.h
+10
-0
No files found.
libstdc++-v3/ChangeLog
View file @
4b6243ef
2000-08-21 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
* bits/std_cmath.h (std::abs): Overload for int and long.
2000-08-20 Benjamin Kosnik <bkoz@gnu.org>
* src/string-inst.cc: Tweak instantiations for new-gxx-abi.
...
...
libstdc++-v3/bits/std_cmath.h
View file @
4b6243ef
...
...
@@ -43,6 +43,16 @@
namespace
std
{
//
// int
//
inline
int
abs
(
int
i
)
{
return
i
<
0
?
i
:
-
i
;
}
inline
long
abs
(
long
i
)
{
return
i
<
0
?
i
:
-
i
;
}
//
// float
//
...
...
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