1// The -*- C++ -*- math functions header. 2// This file is part of the GNU ANSI C++ Library. 3 4#ifndef __CMATH__ 5#define __CMATH__ 6#include <_G_config.h> 7#include <math.h> 8 9#ifdef __GNUG__ 10#pragma interface "cmath" 11#endif 12 13extern "C++" { 14#if 0 15float acos (float); 16float asin (float); 17float atan (float); 18float atan2(float, float); 19float ceil (float); 20float cos (float); 21float cosh (float); 22float exp (float); 23float fabs (float); 24float floor(float); 25float fmod (float, float); 26float frexp(float, int*); 27float modf (float, float*); 28float ldexp(float, int); 29float log (float); 30float log10(float); 31float pow (float, float); 32float pow (float, int); 33float sin (float); 34float sinh (float); 35float sqrt (float); 36float tan (float); 37float tanh (float); 38#endif 39 40inline float abs (float x) { return fabs (x); } 41#if ! _G_MATH_H_INLINES /* hpux and SCO define this in math.h */ 42inline double abs (double x) { return fabs (x); } 43#endif 44 45#if 0 46double pow(double, int); 47 48long double acos (long double); 49long double asin (long double); 50long double atan (long double); 51long double atan2(long double, long double); 52long double ceil (long double); 53long double cos (long double); 54long double cosh (long double); 55long double exp (long double); 56long double fabs (long double); 57long double floor(long double); 58long double frexp(long double, int*); 59long double fmod (long double, long double); 60long double frexp(long double, int*); 61long double log (long double); 62long double log10(long double); 63long double modf (long double, long double*); 64long double pow (long double, long double); 65long double pow (long double, int); 66long double sin (long double); 67long double sinh (long double); 68long double sqrt (long double); 69long double tan (long double); 70long double tanh (long double); 71#endif 72inline long double abs (long double x) { return fabs (x); } 73 74} // extern "C++" 75 76#endif 77