* bits/std_cmath.h (std::abs): Overload for int and long.

From-SVN: r35837
This commit is contained in:
Gabriel Dos Reis 2000-08-21 10:45:26 +00:00 committed by Gabriel Dos Reis
parent 24805e803b
commit 4b6243ef72
2 changed files with 14 additions and 0 deletions

View File

@ -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> 2000-08-20 Benjamin Kosnik <bkoz@gnu.org>
* src/string-inst.cc: Tweak instantiations for new-gxx-abi. * src/string-inst.cc: Tweak instantiations for new-gxx-abi.

View File

@ -43,6 +43,16 @@
namespace std { namespace std {
//
// int
//
inline int abs(int i)
{ return i < 0 ? i : -i; }
inline long abs(long i)
{ return i < 0 ? i : -i; }
// //
// float // float
// //