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