| author | William Roberts <williamr@symbian.org> |
| Tue, 16 Mar 2010 16:12:26 +0000 | |
| branch | Symbian2 |
| changeset 2 | 2fe1408b6811 |
| parent 0 | 061f57f2323e |
| permissions | -rw-r--r-- |
| williamr@2 | 1 |
/* |
| williamr@2 | 2 |
* Copyright (c) 1999 |
| williamr@2 | 3 |
* Boris Fomitchev |
| williamr@2 | 4 |
* |
| williamr@2 | 5 |
* This material is provided "as is", with absolutely no warranty expressed |
| williamr@2 | 6 |
* or implied. Any use is at your own risk. |
| williamr@2 | 7 |
* |
| williamr@2 | 8 |
* Permission to use or copy this software for any purpose is hereby granted |
| williamr@2 | 9 |
* without fee, provided the above notices are retained on all copies. |
| williamr@2 | 10 |
* Permission to modify the code and to distribute modified code is granted, |
| williamr@2 | 11 |
* provided the above notices are retained, and a notice that the code was |
| williamr@2 | 12 |
* modified is included with the above copyright notice. |
| williamr@2 | 13 |
* |
| williamr@2 | 14 |
*/ |
| williamr@2 | 15 |
|
| williamr@2 | 16 |
#ifndef _STLP_CMATH |
| williamr@2 | 17 |
# define _STLP_CMATH |
| williamr@2 | 18 |
|
| williamr@2 | 19 |
# ifndef _STLP_OUTERMOST_HEADER_ID |
| williamr@2 | 20 |
# define _STLP_OUTERMOST_HEADER_ID 0x109 |
| williamr@2 | 21 |
# include <stl/_prolog.h> |
| williamr@2 | 22 |
# endif |
| williamr@2 | 23 |
|
| williamr@2 | 24 |
# if defined (_STLP_USE_NEW_C_HEADERS) |
| williamr@2 | 25 |
# if defined (_STLP_HAS_NO_NAMESPACES) && ! defined (exception) |
| williamr@2 | 26 |
# define exception __math_exception |
| williamr@2 | 27 |
# endif |
| williamr@2 | 28 |
# include _STLP_NATIVE_CPP_C_HEADER(cmath) |
| williamr@2 | 29 |
# if defined (_STLP_HAS_NO_NAMESPACES) |
| williamr@2 | 30 |
# undef exception |
| williamr@2 | 31 |
# endif |
| williamr@2 | 32 |
# else |
| williamr@2 | 33 |
# include <math.h> |
| williamr@2 | 34 |
# endif |
| williamr@2 | 35 |
|
| williamr@2 | 36 |
# if (defined (__SUNPRO_CC) && (__SUNPRO_CC > 0x500)) || \ |
| williamr@2 | 37 |
!( defined (__IBMCPP__) && (__IBMCPP__ >= 500) || ! ( defined (__HP_aCC) && (__HP_aCC >= 30000) )) |
| williamr@2 | 38 |
# ifndef _STLP_HAS_NO_NAMESPACES |
| williamr@2 | 39 |
namespace std {
|
| williamr@2 | 40 |
# endif |
| williamr@2 | 41 |
extern "C" double hypot(double x, double y); |
| williamr@2 | 42 |
# ifndef _STLP_HAS_NO_NAMESPACES |
| williamr@2 | 43 |
} |
| williamr@2 | 44 |
# endif |
| williamr@2 | 45 |
|
| williamr@2 | 46 |
# endif |
| williamr@2 | 47 |
|
| williamr@2 | 48 |
# ifdef _STLP_IMPORT_VENDOR_CSTD |
| williamr@2 | 49 |
_STLP_BEGIN_NAMESPACE |
| williamr@2 | 50 |
# if ! defined (_STLP_NO_CSTD_FUNCTION_IMPORTS) |
| williamr@2 | 51 |
# ifdef _STLP_HAS_NATIVE_FLOAT_ABS |
| williamr@2 | 52 |
using _STLP_VENDOR_CSTD::abs; |
| williamr@2 | 53 |
# endif |
| williamr@2 | 54 |
using _STLP_VENDOR_CSTD::acos; |
| williamr@2 | 55 |
using _STLP_VENDOR_CSTD::asin; |
| williamr@2 | 56 |
using _STLP_VENDOR_CSTD::atan2; |
| williamr@2 | 57 |
using _STLP_VENDOR_CSTD::atan; |
| williamr@2 | 58 |
using _STLP_VENDOR_CSTD::ceil; |
| williamr@2 | 59 |
using _STLP_VENDOR_CSTD::cos; |
| williamr@2 | 60 |
using _STLP_VENDOR_CSTD::cosh; |
| williamr@2 | 61 |
using _STLP_VENDOR_CSTD::exp; |
| williamr@2 | 62 |
using _STLP_VENDOR_CSTD::fabs; |
| williamr@2 | 63 |
using _STLP_VENDOR_CSTD::floor; |
| williamr@2 | 64 |
using _STLP_VENDOR_CSTD::fmod; |
| williamr@2 | 65 |
using _STLP_VENDOR_CSTD::frexp; |
| williamr@2 | 66 |
using _STLP_VENDOR_CSTD::ldexp; |
| williamr@2 | 67 |
using _STLP_VENDOR_CSTD::log10; |
| williamr@2 | 68 |
using _STLP_VENDOR_CSTD::log; |
| williamr@2 | 69 |
using _STLP_VENDOR_CSTD::modf; |
| williamr@2 | 70 |
using _STLP_VENDOR_CSTD::pow; |
| williamr@2 | 71 |
using _STLP_VENDOR_CSTD::sin; |
| williamr@2 | 72 |
using _STLP_VENDOR_CSTD::sinh; |
| williamr@2 | 73 |
using _STLP_VENDOR_CSTD::sqrt; |
| williamr@2 | 74 |
using _STLP_VENDOR_CSTD::tan; |
| williamr@2 | 75 |
using _STLP_VENDOR_CSTD::tanh; |
| williamr@2 | 76 |
# endif /* BUG */ |
| williamr@2 | 77 |
_STLP_END_NAMESPACE |
| williamr@2 | 78 |
# endif /* _STLP_IMPORT_VENDOR_CSTD */ |
| williamr@2 | 79 |
|
| williamr@2 | 80 |
#ifndef _STLP_CMATH_H_HEADER |
| williamr@2 | 81 |
# include <stl/_cmath.h> |
| williamr@2 | 82 |
#endif |
| williamr@2 | 83 |
|
| williamr@2 | 84 |
# if (_STLP_OUTERMOST_HEADER_ID == 0x109 ) |
| williamr@2 | 85 |
# include <stl/_epilog.h> |
| williamr@2 | 86 |
# undef _STLP_OUTERMOST_HEADER_ID |
| williamr@2 | 87 |
# endif |
| williamr@2 | 88 |
|
| williamr@2 | 89 |
#endif /* _STLP_CMATH */ |
| williamr@2 | 90 |
|
| williamr@2 | 91 |
// Local Variables: |
| williamr@2 | 92 |
// mode:C++ |
| williamr@2 | 93 |
// End: |