File: cmath

package info (click to toggle)
stlport4.6 4.6.2-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 7,048 kB
  • ctags: 16,390
  • sloc: ansic: 46,190; cpp: 18,805; sh: 266; asm: 93; perl: 58; makefile: 8
file content (93 lines) | stat: -rw-r--r-- 2,496 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
/*
 * Copyright (c) 1999 
 * Boris Fomitchev
 *
 * This material is provided "as is", with absolutely no warranty expressed
 * or implied. Any use is at your own risk.
 *
 * Permission to use or copy this software for any purpose is hereby granted 
 * without fee, provided the above notices are retained on all copies.
 * Permission to modify the code and to distribute modified code is granted,
 * provided the above notices are retained, and a notice that the code was
 * modified is included with the above copyright notice.
 *
 */

#ifndef _STLP_CMATH
# define _STLP_CMATH

# ifndef _STLP_OUTERMOST_HEADER_ID
#  define _STLP_OUTERMOST_HEADER_ID  0x109
#  include <stl/_prolog.h>
# endif

# if defined (_STLP_USE_NEW_C_HEADERS)
#  if defined (_STLP_HAS_NO_NAMESPACES) && ! defined (exception)
#   define exception __math_exception
#  endif
#  include _STLP_NATIVE_CPP_C_HEADER(cmath)
#  if defined (_STLP_HAS_NO_NAMESPACES)
#   undef exception
#  endif
# else
#  include <math.h>
# endif

#  if (defined (__SUNPRO_CC) && (__SUNPRO_CC > 0x500)) || \
     !( defined (__IBMCPP__) && (__IBMCPP__ >= 500) || ! ( defined (__HP_aCC) && (__HP_aCC >= 30000) ))
# ifndef _STLP_HAS_NO_NAMESPACES
namespace std {
# endif
  extern "C" double hypot(double x, double y);
# ifndef _STLP_HAS_NO_NAMESPACES
}
# endif

#  endif

#  ifdef _STLP_IMPORT_VENDOR_CSTD
_STLP_BEGIN_NAMESPACE
# if ! defined (_STLP_NO_CSTD_FUNCTION_IMPORTS)
# ifdef _STLP_HAS_NATIVE_FLOAT_ABS
using _STLP_VENDOR_CSTD::abs;
# endif
using _STLP_VENDOR_CSTD::acos;
using _STLP_VENDOR_CSTD::asin;
using _STLP_VENDOR_CSTD::atan2;
using _STLP_VENDOR_CSTD::atan;
using _STLP_VENDOR_CSTD::ceil;
using _STLP_VENDOR_CSTD::cos;
using _STLP_VENDOR_CSTD::cosh;
using _STLP_VENDOR_CSTD::exp;
using _STLP_VENDOR_CSTD::fabs;
using _STLP_VENDOR_CSTD::floor;
using _STLP_VENDOR_CSTD::fmod;
using _STLP_VENDOR_CSTD::frexp;
using _STLP_VENDOR_CSTD::ldexp;
using _STLP_VENDOR_CSTD::log10;
using _STLP_VENDOR_CSTD::log;
using _STLP_VENDOR_CSTD::modf;
using _STLP_VENDOR_CSTD::pow;
using _STLP_VENDOR_CSTD::sin;
using _STLP_VENDOR_CSTD::sinh;
using _STLP_VENDOR_CSTD::sqrt;
using _STLP_VENDOR_CSTD::tan;
using _STLP_VENDOR_CSTD::tanh;
# endif /* BUG */
_STLP_END_NAMESPACE
#  endif /* _STLP_IMPORT_VENDOR_CSTD */

#ifndef _STLP_CMATH_H_HEADER
#  include <stl/_cmath.h>
#endif

# if (_STLP_OUTERMOST_HEADER_ID ==  0x109 )
#  include <stl/_epilog.h>
#  undef _STLP_OUTERMOST_HEADER_ID
# endif

#endif /* _STLP_CMATH */

// Local Variables:
// mode:C++
// End: