xref: /haiku/src/system/libroot/posix/musl/math/arm/fma.c (revision 21258e2674226d6aa732321b6f8494841895af5f)
1 #include <math.h>
2 
3 #if __ARM_FEATURE_FMA && __ARM_FP&8 && !__SOFTFP__
4 
5 double fma(double x, double y, double z)
6 {
7 	__asm__ ("vfma.f64 %P0, %P1, %P2" : "+w"(z) : "w"(x), "w"(y));
8 	return z;
9 }
10 
11 #else
12 
13 #include "../fma.c"
14 
15 #endif
16