home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / stlpt453.zip / STLport-4.5.3 / src / complex_impl.h < prev    next >
C/C++ Source or Header  |  2001-10-28  |  4KB  |  95 lines

  1. /*
  2.  * Copyright (c) 1999
  3.  * Silicon Graphics Computer Systems, Inc.
  4.  *
  5.  * Copyright (c) 1999 
  6.  * Boris Fomitchev
  7.  *
  8.  * This material is provided "as is", with absolutely no warranty expressed
  9.  * or implied. Any use is at your own risk.
  10.  *
  11.  * Permission to use or copy this software for any purpose is hereby granted 
  12.  * without fee, provided the above notices are retained on all copies.
  13.  * Permission to modify the code and to distribute modified code is granted,
  14.  * provided the above notices are retained, and a notice that the code was
  15.  * modified is included with the above copyright notice.
  16.  *
  17.  */ 
  18.  
  19. # ifndef COMPLEX_IMPL_H
  20. #  define  COMPLEX_IMPL_H
  21.  
  22. #include <complex>
  23. #include <cmath>
  24. #include <math.h>
  25. #include <stl/_cmath.h>
  26.  
  27. # if (defined (__sgi) && !defined(__GNUC__)) /* || defined (__DECCXX) */
  28.  
  29. # define _STLP_ABSF   _STLP_VENDOR_CSTD::fabsf
  30. # define _STLP_ATAN2F _STLP_VENDOR_CSTD::atan2f
  31. # define _STLP_SINF   _STLP_VENDOR_CSTD::sinf
  32. # define _STLP_COSF   _STLP_VENDOR_CSTD::cosf
  33. # define _STLP_SQRTF  _STLP_VENDOR_CSTD::sqrtf
  34. # define _STLP_EXPF   _STLP_VENDOR_CSTD::expf
  35. # define _STLP_LOG10F _STLP_VENDOR_CSTD::log10f
  36. # define _STLP_LOGF   _STLP_VENDOR_CSTD::logf
  37. # define _STLP_SINHF  _STLP_VENDOR_CSTD::sinhf
  38. # define _STLP_COSHF  _STLP_VENDOR_CSTD::coshf
  39. # define _STLP_HYPOTF _STLP_VENDOR_CSTD::hypotf
  40.  
  41.  
  42. # define _STLP_ABSL   _STLP_VENDOR_CSTD::fabsl
  43. # define _STLP_ATAN2L _STLP_VENDOR_CSTD::atan2l
  44. # define _STLP_SINL   _STLP_VENDOR_CSTD::sinl
  45. # define _STLP_COSL   _STLP_VENDOR_CSTD::cosl
  46. # define _STLP_SQRTL  _STLP_VENDOR_CSTD::sqrtl
  47. # define _STLP_EXPL   _STLP_VENDOR_CSTD::expl
  48. # define _STLP_LOG10L _STLP_VENDOR_CSTD::log10l
  49. # define _STLP_LOGL   _STLP_VENDOR_CSTD::logl
  50. # define _STLP_SINHL  _STLP_VENDOR_CSTD::sinhl
  51. # define _STLP_COSHL  _STLP_VENDOR_CSTD::coshl
  52. // # define _STLP_HYPOT  ::hypot
  53. # define _STLP_HYPOTL _STLP_VENDOR_CSTD::hypotl
  54.  
  55. #else
  56.  
  57. # define _STLP_ABSF (float)_STLP_DO_ABS(double)
  58. # define _STLP_ABSL (long double)_STLP_DO_ABS(double)
  59. # define _STLP_ATAN2F (float)_STLP_DO_ATAN2(double)
  60. # define _STLP_ATAN2L (long double)_STLP_DO_ATAN2(double)
  61. # define _STLP_SINF   (float)_STLP_DO_SIN(double)
  62. # define _STLP_SINL   (long double)_STLP_DO_SIN(double)
  63. # define _STLP_COSF   (float)_STLP_DO_COS(double)
  64. # define _STLP_COSL   (long double)_STLP_DO_COS(double)
  65. # define _STLP_SQRTF  (float)_STLP_DO_SQRT(double)
  66. # define _STLP_SQRTL  (long double)_STLP_DO_SQRT(double)
  67. # define _STLP_EXPF   (float)_STLP_DO_EXP(double)
  68. # define _STLP_EXPL   (long double)_STLP_DO_EXP(double)
  69. # define _STLP_LOG10F   (float)_STLP_DO_LOG10(double)
  70. # define _STLP_LOG10L   (long double)_STLP_DO_LOG10(double)
  71. # define _STLP_LOGF   (float)_STLP_DO_LOG(double)
  72. # define _STLP_LOGL   (long double)_STLP_DO_LOG(double)
  73. # define _STLP_SINHF   (float)_STLP_DO_SINH(double)
  74. # define _STLP_SINHL   (long double)_STLP_DO_SINH(double)
  75. # define _STLP_COSHF   (float)_STLP_DO_COSH(double)
  76. # define _STLP_COSHL   (long double)_STLP_DO_COSH(double)
  77. # define _STLP_HYPOTF   (float)_STLP_DO_HYPOT(double)
  78. # define _STLP_HYPOTL   (long double)_STLP_DO_HYPOT(double)
  79.  
  80. #endif
  81.  
  82. # define _STLP_ABS      (double)_STLP_DO_ABS(double)
  83. # define _STLP_ATAN2    (double)_STLP_DO_ATAN2(double)
  84. # define _STLP_SIN      (double)_STLP_DO_SIN(double)
  85. # define _STLP_COS      (double)_STLP_DO_COS(double)
  86. # define _STLP_SQRT     (double)_STLP_DO_SQRT(double)
  87. # define _STLP_EXP      (double)_STLP_DO_EXP(double)
  88. # define _STLP_LOG10    (double)_STLP_DO_LOG10(double)
  89. # define _STLP_LOG      (double)_STLP_DO_LOG(double)
  90. # define _STLP_SINH     (double)_STLP_DO_SINH(double)
  91. # define _STLP_COSH     (double)_STLP_DO_COSH(double)
  92. # define _STLP_HYPOT    _STLP_DO_HYPOT(double)
  93.  
  94. #endif
  95.