stubs.c: Also implement fabsf/fabsl if not present in the system libraries.

libstdc++-v3/
2005-05-20  Jan Beulich  <jbeulich@novell.com>

	* libmath/stubs.c: Also implement fabsf/fabsl if not present in the
	system libraries.

From-SVN: r100013
This commit is contained in:
Jan Beulich 2005-05-20 14:00:06 +00:00 committed by Jan Beulich
parent a809005264
commit 0d25c320b9
2 changed files with 22 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2005-05-20 Jan Beulich <jbeulich@novell.com>
* libmath/stubs.c: Also implement fabsf/fabsl if not present in the
system libraries.
2005-05-20 Paolo Carlini <pcarlini@suse.de>
* include/bits/stl_algo.h (__rotate<_RandomAccessIterator>):

View File

@ -34,6 +34,23 @@
we use the crude approximation. We'll do better later. */
#ifndef HAVE_FABSF
float
fabsf(float x)
{
return (float) fabs(x);
}
#endif
#ifndef HAVE_FABSL
long double
fabsl(long double x)
{
return fabs((double) x);
}
#endif
#ifndef HAVE_ACOSF
float
acosf(float x)