Commit 81ffc045 by Ian Lance Taylor

Make the functions extern inline rather than static inline

From-SVN: r8024
parent 3cf2c024
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
}) })
#endif #endif
__inline static const double __inline extern double
sin (double x) sin (double x)
{ {
double value; double value;
...@@ -72,7 +72,7 @@ sin (double x) ...@@ -72,7 +72,7 @@ sin (double x)
return value; return value;
} }
__inline static const double __inline extern double
cos (double x) cos (double x)
{ {
double value; double value;
...@@ -83,7 +83,7 @@ cos (double x) ...@@ -83,7 +83,7 @@ cos (double x)
return value; return value;
} }
__inline static const double __inline extern double
tan (double x) tan (double x)
{ {
double value; double value;
...@@ -94,7 +94,7 @@ tan (double x) ...@@ -94,7 +94,7 @@ tan (double x)
return value; return value;
} }
__inline static const double __inline extern double
asin (double x) asin (double x)
{ {
double value; double value;
...@@ -105,7 +105,7 @@ asin (double x) ...@@ -105,7 +105,7 @@ asin (double x)
return value; return value;
} }
__inline static const double __inline extern double
acos (double x) acos (double x)
{ {
double value; double value;
...@@ -116,7 +116,7 @@ acos (double x) ...@@ -116,7 +116,7 @@ acos (double x)
return value; return value;
} }
__inline static const double __inline extern double
atan (double x) atan (double x)
{ {
double value; double value;
...@@ -127,7 +127,7 @@ atan (double x) ...@@ -127,7 +127,7 @@ atan (double x)
return value; return value;
} }
__inline static const double __inline extern double
atan2 (double y, double x) atan2 (double y, double x)
{ {
double pi, pi_over_2; double pi, pi_over_2;
...@@ -184,7 +184,7 @@ atan2 (double y, double x) ...@@ -184,7 +184,7 @@ atan2 (double y, double x)
} }
} }
__inline static const double __inline extern double
sinh (double x) sinh (double x)
{ {
double value; double value;
...@@ -195,7 +195,7 @@ sinh (double x) ...@@ -195,7 +195,7 @@ sinh (double x)
return value; return value;
} }
__inline static const double __inline extern double
cosh (double x) cosh (double x)
{ {
double value; double value;
...@@ -206,7 +206,7 @@ cosh (double x) ...@@ -206,7 +206,7 @@ cosh (double x)
return value; return value;
} }
__inline static const double __inline extern double
tanh (double x) tanh (double x)
{ {
double value; double value;
...@@ -217,7 +217,7 @@ tanh (double x) ...@@ -217,7 +217,7 @@ tanh (double x)
return value; return value;
} }
__inline static const double __inline extern double
atanh (double x) atanh (double x)
{ {
double value; double value;
...@@ -228,7 +228,7 @@ atanh (double x) ...@@ -228,7 +228,7 @@ atanh (double x)
return value; return value;
} }
__inline static const double __inline extern double
exp (double x) exp (double x)
{ {
double value; double value;
...@@ -239,7 +239,7 @@ exp (double x) ...@@ -239,7 +239,7 @@ exp (double x)
return value; return value;
} }
__inline static const double __inline extern double
expm1 (double x) expm1 (double x)
{ {
double value; double value;
...@@ -250,7 +250,7 @@ expm1 (double x) ...@@ -250,7 +250,7 @@ expm1 (double x)
return value; return value;
} }
__inline static const double __inline extern double
log (double x) log (double x)
{ {
double value; double value;
...@@ -261,7 +261,7 @@ log (double x) ...@@ -261,7 +261,7 @@ log (double x)
return value; return value;
} }
__inline static const double __inline extern double
log1p (double x) log1p (double x)
{ {
double value; double value;
...@@ -272,7 +272,7 @@ log1p (double x) ...@@ -272,7 +272,7 @@ log1p (double x)
return value; return value;
} }
__inline static const double __inline extern double
log10 (double x) log10 (double x)
{ {
double value; double value;
...@@ -283,7 +283,7 @@ log10 (double x) ...@@ -283,7 +283,7 @@ log10 (double x)
return value; return value;
} }
__inline static const double __inline extern double
sqrt (double x) sqrt (double x)
{ {
double value; double value;
...@@ -294,14 +294,14 @@ sqrt (double x) ...@@ -294,14 +294,14 @@ sqrt (double x)
return value; return value;
} }
__inline static const double __inline extern double
hypot (const double x, const double y) hypot (double x, double y)
{ {
return sqrt (x*x + y*y); return sqrt (x*x + y*y);
} }
__inline static const double __inline extern double
pow (const double x, const double y) pow (double x, double y)
{ {
if (x > 0) if (x > 0)
return exp (y * log (x)); return exp (y * log (x));
...@@ -349,7 +349,7 @@ pow (const double x, const double y) ...@@ -349,7 +349,7 @@ pow (const double x, const double y)
} }
} }
__inline static const double __inline extern double
fabs (double x) fabs (double x)
{ {
double value; double value;
...@@ -360,7 +360,7 @@ fabs (double x) ...@@ -360,7 +360,7 @@ fabs (double x)
return value; return value;
} }
__inline static const double __inline extern double
ceil (double x) ceil (double x)
{ {
int rounding_mode, round_up; int rounding_mode, round_up;
...@@ -382,7 +382,7 @@ ceil (double x) ...@@ -382,7 +382,7 @@ ceil (double x)
return value; return value;
} }
__inline static const double __inline extern double
floor (double x) floor (double x)
{ {
int rounding_mode, round_down; int rounding_mode, round_down;
...@@ -405,7 +405,7 @@ floor (double x) ...@@ -405,7 +405,7 @@ floor (double x)
return value; return value;
} }
__inline static const double __inline extern double
rint (double x) rint (double x)
{ {
int rounding_mode, round_nearest; int rounding_mode, round_nearest;
...@@ -427,7 +427,7 @@ rint (double x) ...@@ -427,7 +427,7 @@ rint (double x)
return value; return value;
} }
__inline static const double __inline extern double
fmod (double x, double y) fmod (double x, double y)
{ {
double value; double value;
...@@ -439,7 +439,7 @@ fmod (double x, double y) ...@@ -439,7 +439,7 @@ fmod (double x, double y)
return value; return value;
} }
__inline static const double __inline extern double
drem (double x, double y) drem (double x, double y)
{ {
double value; double value;
...@@ -451,7 +451,7 @@ drem (double x, double y) ...@@ -451,7 +451,7 @@ drem (double x, double y)
return value; return value;
} }
__inline static const double __inline extern double
scalb (double x, int n) scalb (double x, int n)
{ {
double value; double value;
...@@ -463,7 +463,7 @@ scalb (double x, int n) ...@@ -463,7 +463,7 @@ scalb (double x, int n)
return value; return value;
} }
__inline static double __inline extern double
logb (double x) logb (double x)
{ {
double exponent; double exponent;
...@@ -474,7 +474,7 @@ logb (double x) ...@@ -474,7 +474,7 @@ logb (double x)
return exponent; return exponent;
} }
__inline static const double __inline extern double
ldexp (double x, int n) ldexp (double x, int n)
{ {
double value; double value;
...@@ -486,7 +486,7 @@ ldexp (double x, int n) ...@@ -486,7 +486,7 @@ ldexp (double x, int n)
return value; return value;
} }
__inline static double __inline extern double
frexp (double x, int *exp) frexp (double x, int *exp)
{ {
double float_exponent; double float_exponent;
...@@ -511,7 +511,7 @@ frexp (double x, int *exp) ...@@ -511,7 +511,7 @@ frexp (double x, int *exp)
return mantissa; return mantissa;
} }
__inline static double __inline extern double
modf (double x, double *ip) modf (double x, double *ip)
{ {
double temp; double temp;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment