Commit 1a79c401 by Gabriel Dos Reis Committed by Gabriel Dos Reis

* libmath/stubs.c (tanhf): Fix typo.

From-SVN: r43502
parent dbd52dc6
2001-06-22 Gabriel Dos Reis <gdr@merlin.codesourcery.com> 2001-06-22 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
* libmath/stubs.c: New file. * libmath/stubs.c: New file.
(tanhf): Fix typo.
* libmath/Makefile.am (libmath_la_SOURCES): Add. * libmath/Makefile.am (libmath_la_SOURCES): Add.
* libmath/Makefile.in. Regenerate. * libmath/Makefile.in. Regenerate.
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
#include <bits/c++config.h> #include <bits/c++config.h>
#if !defined(_GLIBCPP_HAVE_COSF) && !defined(_GLIBCPP_HAVE___BUILTIN_COSF) #if !defined(_GLIBCPP_HAVE_COSF) && !defined(_GLIBCPP_HAVE___BUILTIN_COSF)
extern float float
cosf(float x) cosf(float x)
{ {
return (float) cos(x); return (float) cos(x);
...@@ -39,7 +39,7 @@ cosf(float x) ...@@ -39,7 +39,7 @@ cosf(float x)
#endif #endif
#ifndef _GLIBCPP_HAVE_COSHF #ifndef _GLIBCPP_HAVE_COSHF
extern float float
coshf(float x) coshf(float x)
{ {
return (float) cosh(x); return (float) cosh(x);
...@@ -47,7 +47,7 @@ coshf(float x) ...@@ -47,7 +47,7 @@ coshf(float x)
#endif #endif
#ifndef _GLIBCPP_HAVE_EXPF #ifndef _GLIBCPP_HAVE_EXPF
extern float float
expf(float x) expf(float x)
{ {
return (float) exp(x); return (float) exp(x);
...@@ -55,7 +55,7 @@ expf(float x) ...@@ -55,7 +55,7 @@ expf(float x)
#endif #endif
#ifndef _GLIBCPP_HAVE_LOGF #ifndef _GLIBCPP_HAVE_LOGF
extern float float
logf(float x) logf(float x)
{ {
return (float) log(x); return (float) log(x);
...@@ -63,7 +63,7 @@ logf(float x) ...@@ -63,7 +63,7 @@ logf(float x)
#endif #endif
#ifndef _GLIBCPP_HAVE_LOG10F #ifndef _GLIBCPP_HAVE_LOG10F
extern float float
log10f(float x) log10f(float x)
{ {
return (float) log10(x); return (float) log10(x);
...@@ -71,7 +71,7 @@ log10f(float x) ...@@ -71,7 +71,7 @@ log10f(float x)
#endif #endif
#ifndef _GLIBCPP_HAVE_POWF #ifndef _GLIBCPP_HAVE_POWF
extern float float
powf(float x) powf(float x)
{ {
return (float) pow(x); return (float) pow(x);
...@@ -79,7 +79,7 @@ powf(float x) ...@@ -79,7 +79,7 @@ powf(float x)
#endif #endif
#if !defined(_GLIBCPP_HAVE_SINF) && !defined(_GLIBCPP_HAVE___BUILTIN_SINF) #if !defined(_GLIBCPP_HAVE_SINF) && !defined(_GLIBCPP_HAVE___BUILTIN_SINF)
extern float float
sinf(float x) sinf(float x)
{ {
return (float) sin(x); return (float) sin(x);
...@@ -87,7 +87,7 @@ sinf(float x) ...@@ -87,7 +87,7 @@ sinf(float x)
#endif #endif
#ifndef _GLIBCPP_HAVE_SINHF #ifndef _GLIBCPP_HAVE_SINHF
extern float float
sinhf(float x) sinhf(float x)
{ {
return (float) sinh(x); return (float) sinh(x);
...@@ -95,7 +95,7 @@ sinhf(float x) ...@@ -95,7 +95,7 @@ sinhf(float x)
#endif #endif
#ifndef _GLIBCPP_HAVE_TANF #ifndef _GLIBCPP_HAVE_TANF
extern float float
tanf(float x) tanf(float x)
{ {
return (float) tanf(x); return (float) tanf(x);
...@@ -103,9 +103,9 @@ tanf(float x) ...@@ -103,9 +103,9 @@ tanf(float x)
#endif #endif
#ifndef _GLIBCPP_HAVE_TANHF #ifndef _GLIBCPP_HAVE_TANHF
extern float float
tanhf(float x) tanhf(float x)
{ {
return (float) tanhf(x); return (float) tanh(x);
} }
#endif #endif
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