summaryrefslogtreecommitdiff
path: root/src/math/powerpc64/fma.c
blob: 5aebd1ac3f90cea4ddd340fd4aafbfac6d933ce5 (plain)
1
2
3
4
5
6
7
#include <math.h>

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