* bits/std_cmath.h (std::abs): Overload for int and long.
From-SVN: r35837
This commit is contained in:
parent
24805e803b
commit
4b6243ef72
@ -1,3 +1,7 @@
|
||||
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.
|
||||
|
@ -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
|
||||
//
|
||||
|
Loading…
Reference in New Issue
Block a user