summaryrefslogtreecommitdiffstats
path: root/libstdc++-v3/include/c_std
diff options
context:
space:
mode:
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>2011-08-12 15:40:01 +0000
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>2011-08-12 15:40:01 +0000
commitd366ae5ae3cec0c636d9238a611b6cedc7419dd1 (patch)
treed9379343679f7cc33f97a987c5afb6f6d27d0d17 /libstdc++-v3/include/c_std
parent80ff6494828aec552c700b031d2db3c145aee430 (diff)
downloadppe42-gcc-d366ae5ae3cec0c636d9238a611b6cedc7419dd1.tar.gz
ppe42-gcc-d366ae5ae3cec0c636d9238a611b6cedc7419dd1.zip
2011-08-12 Paolo Carlini <paolo.carlini@oracle.com>
* include/c_global/cmath (fmod(_Tp, _Up)): Add. * include/c_std/cmath: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@177698 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/include/c_std')
-rw-r--r--libstdc++-v3/include/c_std/cmath7
1 files changed, 7 insertions, 0 deletions
diff --git a/libstdc++-v3/include/c_std/cmath b/libstdc++-v3/include/c_std/cmath
index 13eef408402..c367fceed62 100644
--- a/libstdc++-v3/include/c_std/cmath
+++ b/libstdc++-v3/include/c_std/cmath
@@ -268,6 +268,13 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
fmod(long double __x, long double __y)
{ return __builtin_fmodl(__x, __y); }
+ template<typename _Tp, typename _Up>
+ inline typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value
+ && __is_integer<_Up>::__value,
+ double>::__type
+ fmod(_Tp __x, _Up __y)
+ { return __builtin_fmod(__x, __y); }
+
using ::frexp;
inline float
OpenPOWER on IntegriCloud