kernel: scheduling fix for ARM
[minix.git] / lib / libc / arch / powerpc64 / gen / fabs.c
blob4cc21a901dfd35d47438ae1a62c9a821ddadfb63
1 /* $NetBSD: fabs.c,v 1.2 2006/07/05 18:07:22 ross 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);