summaryrefslogtreecommitdiff
path: root/lib/libm/aarch64/fmax.c
blob: 4d094507dd164288c081b65a2c77dc0cf3a89b99 (plain)
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;
}