summaryrefslogtreecommitdiffstats
path: root/contrib/libstdc++/include/c/std_cmath.h
diff options
context:
space:
mode:
authorkan <kan@FreeBSD.org>2004-07-28 03:12:05 +0000
committerkan <kan@FreeBSD.org>2004-07-28 03:12:05 +0000
commit96bad46eee8bf907dceb152bbb9d128bed5a4956 (patch)
tree75ef0e6da73746d6849e25a0996ae34e1aeff51d /contrib/libstdc++/include/c/std_cmath.h
parent5e00ec74d8ce58f99801200d4d3d0412c7cc1b28 (diff)
downloadFreeBSD-src-96bad46eee8bf907dceb152bbb9d128bed5a4956.zip
FreeBSD-src-96bad46eee8bf907dceb152bbb9d128bed5a4956.tar.gz
Gcc 3.4.2 20040728 C++ support bits.
Diffstat (limited to 'contrib/libstdc++/include/c/std_cmath.h')
-rw-r--r--contrib/libstdc++/include/c/std_cmath.h26
1 files changed, 13 insertions, 13 deletions
diff --git a/contrib/libstdc++/include/c/std_cmath.h b/contrib/libstdc++/include/c/std_cmath.h
index beb7141..fcaa759 100644
--- a/contrib/libstdc++/include/c/std_cmath.h
+++ b/contrib/libstdc++/include/c/std_cmath.h
@@ -1,6 +1,6 @@
// -*- C++ -*- forwarding header.
-// Copyright (C) 2000, 2002 Free Software Foundation, Inc.
+// Copyright (C) 2000, 2002, 2003 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
@@ -31,9 +31,9 @@
// ISO C++ 14882: 26.5 C library
//
-#ifndef _CPP_CMATH
-#define _CPP_CMATH 1
-
+#ifndef _GLIBCXX_CMATH
+#define _GLIBCXX_CMATH 1
+
#pragma GCC system_header
#include <bits/c++config.h>
@@ -79,7 +79,7 @@
#undef islessgreater
#undef isunordered
-namespace std
+namespace std
{
inline double
abs(double __x)
@@ -93,11 +93,11 @@ namespace std
abs(long double __x)
{ return __builtin_fabsl(__x); }
-#if _GLIBCPP_HAVE_MODFF
- inline float
+#if _GLIBCXX_HAVE_MODFF
+ inline float
modf(float __x, float* __iptr) { return modff(__x, __iptr); }
#else
- inline float
+ inline float
modf(float __x, float* __iptr)
{
double __tmp;
@@ -107,13 +107,13 @@ namespace std
}
#endif
-#if _GLIBCPP_HAVE_MODFL
- inline long double
+#if _GLIBCXX_HAVE_MODFL
+ inline long double
modf(long double __x, long double* __iptr) { return modfl(__x, __iptr); }
#else
- inline long double
- modf(long double __x, long double* __iptr)
- {
+ inline long double
+ modf(long double __x, long double* __iptr)
+ {
double __tmp;
double __res = modf(static_cast<double>(__x), &__tmp);
* __iptr = static_cast<long double>(__tmp);
OpenPOWER on IntegriCloud