Fix mdoc(7)/man(7) mix up.
[netbsd-mini2440.git] / lib / libc / arch / powerpc / gen / fabs.c
blob951fc59bcd2c571221cd9120ec4bf3816298e35f
1 /* $NetBSD: fabs.c,v 1.3 2005/12/24 21:11:16 perry Exp $ */
3 #include <math.h>
5 double
6 fabs(double x)
8 #ifdef _SOFT_FLOAT
9 if (x < 0)
10 x = -x;
11 #else
12 __asm volatile("fabs %0,%1" : "=f"(x) : "f"(x));
13 #endif
14 return (x);