Add fabsf function

This commit is contained in:
Erik van der Kouwe
2010-01-08 07:27:11 +00:00
parent d1fd04e72a
commit 17b10f1bf3
3 changed files with 26 additions and 0 deletions

View File

@@ -6,8 +6,15 @@
*/
/* $Header$ */
float
fabsf(float x)
{
return x < 0 ? -x : x;
}
double
fabs(double x)
{
return x < 0 ? -x : x;
}