fma.c\arm\math\src - musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/src/math/arm/fma.c
blob: 2a9b8efa777fa7e5a38d811cf3c8958b569f7857 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <math.h>
#if __ARM_FEATURE_FMA && __ARM_FP&8 && !__SOFTFP__
double fma(double x, double y, double z)
{
	__asm__ ("vfma.f64 %P0, %P1, %P2" : "+w"(z) : "w"(x), "w"(y));
	return z;
}
#else
#include "../fma.c"
#endif
generated by cgit v1.2.1 (git 2.18.0) at 2025年10月07日 05:24:02 +0000

AltStyle によって変換されたページ (->オリジナル) /