xref: /haiku/src/system/libroot/posix/musl/math/arm/fma.c (revision bb83316a5811a550c4f850d07fa8e328e7ac0a94)
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