complex_impl.h

00001 /*
00002  * Copyright (c) 1999
00003  * Silicon Graphics Computer Systems, Inc.
00004  *
00005  * Copyright (c) 1999 
00006  * Boris Fomitchev
00007  *
00008  * This material is provided "as is", with absolutely no warranty expressed
00009  * or implied. Any use is at your own risk.
00010  *
00011  * Permission to use or copy this software for any purpose is hereby granted 
00012  * without fee, provided the above notices are retained on all copies.
00013  * Permission to modify the code and to distribute modified code is granted,
00014  * provided the above notices are retained, and a notice that the code was
00015  * modified is included with the above copyright notice.
00016  *
00017  */ 
00018 
00019 # ifndef COMPLEX_IMPL_H
00020 #  define  COMPLEX_IMPL_H
00021 
00022 #include <complex>
00023 #include <cmath>
00024 #include <math.h>
00025 #include <stl/_cmath.h>
00026 
00027 # if (defined (__sgi) && !defined(__GNUC__)) /* || defined (__DECCXX) */
00028 
00029 # define _STLP_ABSF   _STLP_VENDOR_CSTD::fabsf
00030 # define _STLP_ATAN2F _STLP_VENDOR_CSTD::atan2f
00031 # define _STLP_SINF   _STLP_VENDOR_CSTD::sinf
00032 # define _STLP_COSF   _STLP_VENDOR_CSTD::cosf
00033 # define _STLP_SQRTF  _STLP_VENDOR_CSTD::sqrtf
00034 # define _STLP_EXPF   _STLP_VENDOR_CSTD::expf
00035 # define _STLP_LOG10F _STLP_VENDOR_CSTD::log10f
00036 # define _STLP_LOGF   _STLP_VENDOR_CSTD::logf
00037 # define _STLP_SINHF  _STLP_VENDOR_CSTD::sinhf
00038 # define _STLP_COSHF  _STLP_VENDOR_CSTD::coshf
00039 # define _STLP_HYPOTF _STLP_VENDOR_CSTD::hypotf
00040 
00041 
00042 # define _STLP_ABSL   _STLP_VENDOR_CSTD::fabsl
00043 # define _STLP_ATAN2L _STLP_VENDOR_CSTD::atan2l
00044 # define _STLP_SINL   _STLP_VENDOR_CSTD::sinl
00045 # define _STLP_COSL   _STLP_VENDOR_CSTD::cosl
00046 # define _STLP_SQRTL  _STLP_VENDOR_CSTD::sqrtl
00047 # define _STLP_EXPL   _STLP_VENDOR_CSTD::expl
00048 # define _STLP_LOG10L _STLP_VENDOR_CSTD::log10l
00049 # define _STLP_LOGL   _STLP_VENDOR_CSTD::logl
00050 # define _STLP_SINHL  _STLP_VENDOR_CSTD::sinhl
00051 # define _STLP_COSHL  _STLP_VENDOR_CSTD::coshl
00052 // # define _STLP_HYPOT  ::hypot
00053 # define _STLP_HYPOTL _STLP_VENDOR_CSTD::hypotl
00054 
00055 #else
00056 
00057 # define _STLP_ABSF (float)_STLP_DO_ABS(double)
00058 # define _STLP_ABSL (long double)_STLP_DO_ABS(double)
00059 # define _STLP_ATAN2F (float)_STLP_DO_ATAN2(double)
00060 # define _STLP_ATAN2L (long double)_STLP_DO_ATAN2(double)
00061 # define _STLP_SINF   (float)_STLP_DO_SIN(double)
00062 # define _STLP_SINL   (long double)_STLP_DO_SIN(double)
00063 # define _STLP_COSF   (float)_STLP_DO_COS(double)
00064 # define _STLP_COSL   (long double)_STLP_DO_COS(double)
00065 # define _STLP_SQRTF  (float)_STLP_DO_SQRT(double)
00066 # define _STLP_SQRTL  (long double)_STLP_DO_SQRT(double)
00067 # define _STLP_EXPF   (float)_STLP_DO_EXP(double)
00068 # define _STLP_EXPL   (long double)_STLP_DO_EXP(double)
00069 # define _STLP_LOG10F   (float)_STLP_DO_LOG10(double)
00070 # define _STLP_LOG10L   (long double)_STLP_DO_LOG10(double)
00071 # define _STLP_LOGF   (float)_STLP_DO_LOG(double)
00072 # define _STLP_LOGL   (long double)_STLP_DO_LOG(double)
00073 # define _STLP_SINHF   (float)_STLP_DO_SINH(double)
00074 # define _STLP_SINHL   (long double)_STLP_DO_SINH(double)
00075 # define _STLP_COSHF   (float)_STLP_DO_COSH(double)
00076 # define _STLP_COSHL   (long double)_STLP_DO_COSH(double)
00077 # define _STLP_HYPOTF   (float)_STLP_DO_HYPOT(double)
00078 # define _STLP_HYPOTL   (long double)_STLP_DO_HYPOT(double)
00079 
00080 #endif
00081 
00082 # define _STLP_ABS      (double)_STLP_DO_ABS(double)
00083 # define _STLP_ATAN2    (double)_STLP_DO_ATAN2(double)
00084 # define _STLP_SIN      (double)_STLP_DO_SIN(double)
00085 # define _STLP_COS      (double)_STLP_DO_COS(double)
00086 # define _STLP_SQRT     (double)_STLP_DO_SQRT(double)
00087 # define _STLP_EXP      (double)_STLP_DO_EXP(double)
00088 # define _STLP_LOG10    (double)_STLP_DO_LOG10(double)
00089 # define _STLP_LOG      (double)_STLP_DO_LOG(double)
00090 # define _STLP_SINH     (double)_STLP_DO_SINH(double)
00091 # define _STLP_COSH     (double)_STLP_DO_COSH(double)
00092 # define _STLP_HYPOT    _STLP_DO_HYPOT(double)
00093 
00094 #endif

Generated on Mon Jun 5 10:20:45 2006 for Intelligence.kdevelop by  doxygen 1.4.6