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