aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/include/c_std
diff options
context:
space:
mode:
authorScott Snyder <snyder@fnal.gov>2001-03-06 02:51:15 +0000
committerBenjamin Kosnik <bkoz@gcc.gnu.org>2001-03-06 02:51:15 +0000
commit21aaf8bffcf05aec09db0213f8210cc205175141 (patch)
tree518dd91d1b892b105c6aaca28f36c27c65e32161 /libstdc++-v3/include/c_std
parentf283dc441464aa1604fb975ac74829bb9edeb2d2 (diff)
downloadgcc-21aaf8bffcf05aec09db0213f8210cc205175141.zip
gcc-21aaf8bffcf05aec09db0213f8210cc205175141.tar.gz
gcc-21aaf8bffcf05aec09db0213f8210cc205175141.tar.bz2
std_cmath.h: Move abs(long), div(long,long) from here...
2001-03-05 scott snyder <snyder@fnal.gov> libstdc++/2190 * include/c_std/bits/std_cmath.h: Move abs(long), div(long,long) from here... * include/c_std/bits/std_cstdlib.h: ... to here. * testsuite/17_intro/header_cstdlib.cc: Add test. From-SVN: r40254
Diffstat (limited to 'libstdc++-v3/include/c_std')
-rw-r--r--libstdc++-v3/include/c_std/bits/std_cmath.h6
-rw-r--r--libstdc++-v3/include/c_std/bits/std_cstdlib.h6
2 files changed, 6 insertions, 6 deletions
diff --git a/libstdc++-v3/include/c_std/bits/std_cmath.h b/libstdc++-v3/include/c_std/bits/std_cmath.h
index 3648b20..acddb33 100644
--- a/libstdc++-v3/include/c_std/bits/std_cmath.h
+++ b/libstdc++-v3/include/c_std/bits/std_cmath.h
@@ -80,12 +80,6 @@ namespace std
return __x < _Tp() ? -__x : __x;
}
- inline long
- abs(long __i) { return ::labs(__i); }
-
- inline ldiv_t
- div(long __i, long __j) { return ::ldiv(__i, __j); }
-
#if _GLIBCPP_HAVE___BUILTIN_FABSF
inline float
abs(float __x) { return __builtin_fabsf(__x); }
diff --git a/libstdc++-v3/include/c_std/bits/std_cstdlib.h b/libstdc++-v3/include/c_std/bits/std_cstdlib.h
index 5ee0b7e..8b7776d 100644
--- a/libstdc++-v3/include/c_std/bits/std_cstdlib.h
+++ b/libstdc++-v3/include/c_std/bits/std_cstdlib.h
@@ -130,6 +130,12 @@ namespace std
extern "C" size_t mbstowcs(wchar_t*, const char*, size_t);
extern "C" size_t wcstombs(char*, const wchar_t*, size_t);
+ inline long
+ abs(long __i) { return ::labs(__i); }
+
+ inline ldiv_t
+ div(long __i, long __j) { return ::ldiv(__i, __j); }
+
#ifdef _GLIBCPP_USE_LONG_LONG
inline long long
abs(long long __x) { return __x >= 0 ? __x : -__x; }