summaryrefslogtreecommitdiff
path: root/src/math/powerpc/fma.c
blob: 135c990357d2d2deda4bbd4158a312d48e1f1c8d (plain)
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 "../fma.c"

#else

double fma(double x, double y, double z)
{
	__asm__("fmadd %0, %1, %2, %3" : "=d"(x) : "d"(x), "d"(y), "d"(z));
	return x;
}

#endif