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