Commit 4b6243ef by Gabriel Dos Reis Committed by Gabriel Dos Reis

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

From-SVN: r35837
parent 24805e80
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
//
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment