1.1 --- a/epoc32/include/stdapis/stlport/cstd/cmath Tue Nov 24 13:55:44 2009 +0000
1.2 +++ b/epoc32/include/stdapis/stlport/cstd/cmath Tue Mar 16 16:12:26 2010 +0000
1.3 @@ -1,1 +1,93 @@
1.4 -cmath
1.5 +/*
1.6 + * Copyright (c) 1999
1.7 + * Boris Fomitchev
1.8 + *
1.9 + * This material is provided "as is", with absolutely no warranty expressed
1.10 + * or implied. Any use is at your own risk.
1.11 + *
1.12 + * Permission to use or copy this software for any purpose is hereby granted
1.13 + * without fee, provided the above notices are retained on all copies.
1.14 + * Permission to modify the code and to distribute modified code is granted,
1.15 + * provided the above notices are retained, and a notice that the code was
1.16 + * modified is included with the above copyright notice.
1.17 + *
1.18 + */
1.19 +
1.20 +#ifndef _STLP_CMATH
1.21 +# define _STLP_CMATH
1.22 +
1.23 +# ifndef _STLP_OUTERMOST_HEADER_ID
1.24 +# define _STLP_OUTERMOST_HEADER_ID 0x109
1.25 +# include <stl/_prolog.h>
1.26 +# endif
1.27 +
1.28 +# if defined (_STLP_USE_NEW_C_HEADERS)
1.29 +# if defined (_STLP_HAS_NO_NAMESPACES) && ! defined (exception)
1.30 +# define exception __math_exception
1.31 +# endif
1.32 +# include _STLP_NATIVE_CPP_C_HEADER(cmath)
1.33 +# if defined (_STLP_HAS_NO_NAMESPACES)
1.34 +# undef exception
1.35 +# endif
1.36 +# else
1.37 +# include <math.h>
1.38 +# endif
1.39 +
1.40 +# if (defined (__SUNPRO_CC) && (__SUNPRO_CC > 0x500)) || \
1.41 + !( defined (__IBMCPP__) && (__IBMCPP__ >= 500) || ! ( defined (__HP_aCC) && (__HP_aCC >= 30000) ))
1.42 +# ifndef _STLP_HAS_NO_NAMESPACES
1.43 +namespace std {
1.44 +# endif
1.45 + extern "C" double hypot(double x, double y);
1.46 +# ifndef _STLP_HAS_NO_NAMESPACES
1.47 +}
1.48 +# endif
1.49 +
1.50 +# endif
1.51 +
1.52 +# ifdef _STLP_IMPORT_VENDOR_CSTD
1.53 +_STLP_BEGIN_NAMESPACE
1.54 +# if ! defined (_STLP_NO_CSTD_FUNCTION_IMPORTS)
1.55 +# ifdef _STLP_HAS_NATIVE_FLOAT_ABS
1.56 +using _STLP_VENDOR_CSTD::abs;
1.57 +# endif
1.58 +using _STLP_VENDOR_CSTD::acos;
1.59 +using _STLP_VENDOR_CSTD::asin;
1.60 +using _STLP_VENDOR_CSTD::atan2;
1.61 +using _STLP_VENDOR_CSTD::atan;
1.62 +using _STLP_VENDOR_CSTD::ceil;
1.63 +using _STLP_VENDOR_CSTD::cos;
1.64 +using _STLP_VENDOR_CSTD::cosh;
1.65 +using _STLP_VENDOR_CSTD::exp;
1.66 +using _STLP_VENDOR_CSTD::fabs;
1.67 +using _STLP_VENDOR_CSTD::floor;
1.68 +using _STLP_VENDOR_CSTD::fmod;
1.69 +using _STLP_VENDOR_CSTD::frexp;
1.70 +using _STLP_VENDOR_CSTD::ldexp;
1.71 +using _STLP_VENDOR_CSTD::log10;
1.72 +using _STLP_VENDOR_CSTD::log;
1.73 +using _STLP_VENDOR_CSTD::modf;
1.74 +using _STLP_VENDOR_CSTD::pow;
1.75 +using _STLP_VENDOR_CSTD::sin;
1.76 +using _STLP_VENDOR_CSTD::sinh;
1.77 +using _STLP_VENDOR_CSTD::sqrt;
1.78 +using _STLP_VENDOR_CSTD::tan;
1.79 +using _STLP_VENDOR_CSTD::tanh;
1.80 +# endif /* BUG */
1.81 +_STLP_END_NAMESPACE
1.82 +# endif /* _STLP_IMPORT_VENDOR_CSTD */
1.83 +
1.84 +#ifndef _STLP_CMATH_H_HEADER
1.85 +# include <stl/_cmath.h>
1.86 +#endif
1.87 +
1.88 +# if (_STLP_OUTERMOST_HEADER_ID == 0x109 )
1.89 +# include <stl/_epilog.h>
1.90 +# undef _STLP_OUTERMOST_HEADER_ID
1.91 +# endif
1.92 +
1.93 +#endif /* _STLP_CMATH */
1.94 +
1.95 +// Local Variables:
1.96 +// mode:C++
1.97 +// End: