xref: /haiku/src/system/libroot/posix/musl/math/arm64/fmax.c (revision f504f61099b010fbfa94b1cc63d2e9072c7f7185)
1*f504f610SAugustin Cavalier #include <math.h>
2*f504f610SAugustin Cavalier 
fmax(double x,double y)3*f504f610SAugustin Cavalier double fmax(double x, double y)
4*f504f610SAugustin Cavalier {
5*f504f610SAugustin Cavalier 	__asm__ ("fmaxnm %d0, %d1, %d2" : "=w"(x) : "w"(x), "w"(y));
6*f504f610SAugustin Cavalier 	return x;
7*f504f610SAugustin Cavalier }
8