summaryrefslogblamecommitdiff
path: root/src/math/powerpc/fmaf.c
blob: a99a2a3ba165ea5496e321bc5a59ae99f74cedbd (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15














                                                                            
#include <math.h>

#ifdef _SOFT_FLOAT

#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