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

#if defined(_SOFT_FLOAT) || defined(BROKEN_PPC_D_ASM)

#include "../fabs.c"

#else

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

#endif