summaryrefslogblamecommitdiff
path: root/src/math/aarch64/fmax.c
blob: 86dcb3b4591c5e1fe78bdadb1fbe6ecaecf85370 (plain) (tree)
1
2
3
4
5
6
7






                                                                    
#include <math.h>

double fmax(double x, double y)
{
	__asm__ ("fmaxnm %d0, %d1, %d2" : "=w"(x) : "w"(x), "w"(y));
	return x;
}