mailing list of musl libc
 help / color / mirror / code / Atom feed
0b6a3f233628f5ef42a4dc53da9c1dfac436b4c6 blob 163 bytes (raw)

1
2
3
4
5
6
7
 
#include <math.h>

double fma(double x, double y, double z)
{
	__asm__ __volatile__("fmadd.d %0, %1, %2, %3" : "=f" (x) : "f"(x) , "f" (y), "f" (z));
	return x;
}
debug log:

solving 0b6a3f23 ...
found 0b6a3f23 in https://inbox.vuxu.org/musl/20240423022619.1253464-1-fanpeng@loongson.cn/

applying [1/1] https://inbox.vuxu.org/musl/20240423022619.1253464-1-fanpeng@loongson.cn/
diff --git a/src/math/loongarch64/fma.c b/src/math/loongarch64/fma.c
new file mode 100644
index 00000000..0b6a3f23

Checking patch src/math/loongarch64/fma.c...
Applied patch src/math/loongarch64/fma.c cleanly.

index at:
100644 0b6a3f233628f5ef42a4dc53da9c1dfac436b4c6	src/math/loongarch64/fma.c

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).