2011-01-12 Ralf Corsépius <ralf.corsepius@rtems.org>
* libm/math/w_tgamma.c: Only build ifndef _DOUBLE_IS_32BITS. * libm/math/wf_tgamma.c: Map tgamma to tgammaf, ifdef _DOUBLE_IS_32BITS.
This commit is contained in:
parent
0597fe0adc
commit
47235a60ab
|
@ -1,3 +1,8 @@
|
||||||
|
2011-01-12 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||||
|
|
||||||
|
* libm/math/w_tgamma.c: Only build ifndef _DOUBLE_IS_32BITS.
|
||||||
|
* libm/math/wf_tgamma.c: Map tgamma to tgammaf, ifdef _DOUBLE_IS_32BITS.
|
||||||
|
|
||||||
2011-01-12 Jeff Johnston <jjohnstn@redhat.com>
|
2011-01-12 Jeff Johnston <jjohnstn@redhat.com>
|
||||||
|
|
||||||
* configure.host: Add noinclude variable to allow specification
|
* configure.host: Add noinclude variable to allow specification
|
||||||
|
|
|
@ -17,6 +17,8 @@
|
||||||
|
|
||||||
#include "fdlibm.h"
|
#include "fdlibm.h"
|
||||||
|
|
||||||
|
#ifndef _DOUBLE_IS_32BITS
|
||||||
|
|
||||||
#ifdef __STDC__
|
#ifdef __STDC__
|
||||||
double tgamma(double x)
|
double tgamma(double x)
|
||||||
#else
|
#else
|
||||||
|
@ -42,3 +44,5 @@
|
||||||
return y;
|
return y;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif /* defined(_DOUBLE_IS_32BITS) */
|
||||||
|
|
|
@ -43,3 +43,17 @@
|
||||||
return y;
|
return y;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef _DOUBLE_IS_32BITS
|
||||||
|
|
||||||
|
#ifdef __STDC__
|
||||||
|
double tgamma(double x)
|
||||||
|
#else
|
||||||
|
double tgamma(x)
|
||||||
|
double x;
|
||||||
|
#endif
|
||||||
|
{
|
||||||
|
return (double) tgammaf((float) x);
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif /* defined(_DOUBLE_IS_32BITS) */
|
||||||
|
|
Loading…
Reference in New Issue