summaryrefslogtreecommitdiff
path: root/src/math/powerpc/fabsf.c
blob: 2e9da588dd65bed4f08e8a70cef491feb41b6d3a (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(__NO_FPRS__)

#include "../fabsf.c"

#else

float fabsf(float x)
{
	__asm__ ("fabs %0, %1" : "=f"(x) : "f"(x));
	return x;
}

#endif