1
0
mirror of https://github.com/adtools/clib2.git synced 2025-12-08 14:59:05 +00:00

Some adjustments so that the function is available even in non-FPU code

git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@14731 87f5fb63-7c3d-0410-a384-fd976d0f7a62
This commit is contained in:
Thomas Frieden
2004-09-27 15:06:19 +00:00
parent 5d508c6e6d
commit 0cbc101798
5 changed files with 21 additions and 10 deletions

View File

@ -1,5 +1,5 @@
/*
* $Id: math_fabs.c,v 1.1.1.1 2004-07-26 16:30:42 obarthel Exp $
* $Id: math_fabs.c,v 1.2 2004-09-27 15:06:16 tfrieden Exp $
*
* :ts=4
*
@ -141,6 +141,17 @@ __fabs(double x)
}
#else
INLINE static const double
__fabs(double x)
{
if (x > 0)
return x;
else
return -x;
}
#endif /* PPC_FLOATING_POINT_SUPPORT */
/****************************************************************************/