about summary refs log tree commit diff
path: root/src/math/powerpc/fabs.c
blob: f6ec4433c208a30a1613777e42cad2fe76c1fc73 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <math.h>

#ifdef _SOFT_FLOAT

#include "../fabs.c"

#else

double fabs(double x)
{
	__asm__ ("fabs %0, %1" : "=d"(x) : "d"(x));
	return x;
}

#endif