sl@0: /* sl@0: * Copyright (c) 1999 sl@0: * Silicon Graphics Computer Systems, Inc. sl@0: * sl@0: * Copyright (c) 1999 sl@0: * Boris Fomitchev sl@0: * sl@0: * This material is provided "as is", with absolutely no warranty expressed sl@0: * or implied. Any use is at your own risk. sl@0: * sl@0: * Permission to use or copy this software for any purpose is hereby granted sl@0: * without fee, provided the above notices are retained on all copies. sl@0: * Permission to modify the code and to distribute modified code is granted, sl@0: * provided the above notices are retained, and a notice that the code was sl@0: * modified is included with the above copyright notice. sl@0: * sl@0: */ sl@0: sl@0: # ifndef COMPLEX_IMPL_H sl@0: # define COMPLEX_IMPL_H sl@0: sl@0: #include sl@0: #include sl@0: #include sl@0: #include sl@0: sl@0: # if (defined (__sgi) && !defined(__GNUC__)) /* || defined (__DECCXX) */ sl@0: sl@0: # define _STLP_ABSF _STLP_VENDOR_CSTD::fabsf sl@0: # define _STLP_ATAN2F _STLP_VENDOR_CSTD::atan2f sl@0: # define _STLP_SINF _STLP_VENDOR_CSTD::sinf sl@0: # define _STLP_COSF _STLP_VENDOR_CSTD::cosf sl@0: # define _STLP_SQRTF _STLP_VENDOR_CSTD::sqrtf sl@0: # define _STLP_EXPF _STLP_VENDOR_CSTD::expf sl@0: # define _STLP_LOG10F _STLP_VENDOR_CSTD::log10f sl@0: # define _STLP_LOGF _STLP_VENDOR_CSTD::logf sl@0: # define _STLP_SINHF _STLP_VENDOR_CSTD::sinhf sl@0: # define _STLP_COSHF _STLP_VENDOR_CSTD::coshf sl@0: # define _STLP_HYPOTF _STLP_VENDOR_CSTD::hypotf sl@0: sl@0: sl@0: # define _STLP_ABSL _STLP_VENDOR_CSTD::fabsl sl@0: # define _STLP_ATAN2L _STLP_VENDOR_CSTD::atan2l sl@0: # define _STLP_SINL _STLP_VENDOR_CSTD::sinl sl@0: # define _STLP_COSL _STLP_VENDOR_CSTD::cosl sl@0: # define _STLP_SQRTL _STLP_VENDOR_CSTD::sqrtl sl@0: # define _STLP_EXPL _STLP_VENDOR_CSTD::expl sl@0: # define _STLP_LOG10L _STLP_VENDOR_CSTD::log10l sl@0: # define _STLP_LOGL _STLP_VENDOR_CSTD::logl sl@0: # define _STLP_SINHL _STLP_VENDOR_CSTD::sinhl sl@0: # define _STLP_COSHL _STLP_VENDOR_CSTD::coshl sl@0: // # define _STLP_HYPOT ::hypot sl@0: # define _STLP_HYPOTL _STLP_VENDOR_CSTD::hypotl sl@0: sl@0: #else sl@0: sl@0: # define _STLP_ABSF (float)_STLP_DO_ABS(double) sl@0: # define _STLP_ABSL (long double)_STLP_DO_ABS(double) sl@0: # define _STLP_ATAN2F (float)_STLP_DO_ATAN2(double) sl@0: # define _STLP_ATAN2L (long double)_STLP_DO_ATAN2(double) sl@0: # define _STLP_SINF (float)_STLP_DO_SIN(double) sl@0: # define _STLP_SINL (long double)_STLP_DO_SIN(double) sl@0: # define _STLP_COSF (float)_STLP_DO_COS(double) sl@0: # define _STLP_COSL (long double)_STLP_DO_COS(double) sl@0: # define _STLP_SQRTF (float)_STLP_DO_SQRT(double) sl@0: # define _STLP_SQRTL (long double)_STLP_DO_SQRT(double) sl@0: # define _STLP_EXPF (float)_STLP_DO_EXP(double) sl@0: # define _STLP_EXPL (long double)_STLP_DO_EXP(double) sl@0: # define _STLP_LOG10F (float)_STLP_DO_LOG10(double) sl@0: # define _STLP_LOG10L (long double)_STLP_DO_LOG10(double) sl@0: # define _STLP_LOGF (float)_STLP_DO_LOG(double) sl@0: # define _STLP_LOGL (long double)_STLP_DO_LOG(double) sl@0: # define _STLP_SINHF (float)_STLP_DO_SINH(double) sl@0: # define _STLP_SINHL (long double)_STLP_DO_SINH(double) sl@0: # define _STLP_COSHF (float)_STLP_DO_COSH(double) sl@0: # define _STLP_COSHL (long double)_STLP_DO_COSH(double) sl@0: # define _STLP_HYPOTF (float)_STLP_DO_HYPOT(double) sl@0: # define _STLP_HYPOTL (long double)_STLP_DO_HYPOT(double) sl@0: sl@0: #endif sl@0: sl@0: # define _STLP_ABS (double)_STLP_DO_ABS(double) sl@0: # define _STLP_ATAN2 (double)_STLP_DO_ATAN2(double) sl@0: # define _STLP_SIN (double)_STLP_DO_SIN(double) sl@0: # define _STLP_COS (double)_STLP_DO_COS(double) sl@0: # define _STLP_SQRT (double)_STLP_DO_SQRT(double) sl@0: # define _STLP_EXP (double)_STLP_DO_EXP(double) sl@0: # define _STLP_LOG10 (double)_STLP_DO_LOG10(double) sl@0: # define _STLP_LOG (double)_STLP_DO_LOG(double) sl@0: # define _STLP_SINH (double)_STLP_DO_SINH(double) sl@0: # define _STLP_COSH (double)_STLP_DO_COSH(double) sl@0: # define _STLP_HYPOT _STLP_DO_HYPOT(double) sl@0: sl@0: #endif