summaryrefslogtreecommitdiff
path: root/src/math/powerpc/fmaf.c
blob: dc1a749d984c2e29db51e58bd72a79e0f456bc8a (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 "../fmaf.c"

#else

float fmaf(float x, float y, float z)
{
	__asm__("fmadds %0, %1, %2, %3" : "=f"(x) : "f"(x), "f"(y), "f"(z));
	return x;
}

#endif