mailing list of musl libc
 help / color / mirror / code / Atom feed
9e3b8de31e7ba7448f0ce3fbfc5b4f8208331d46 blob 146 bytes (raw)

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

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

solving 9e3b8de3 ...
found 9e3b8de3 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/copysign.c b/src/math/loongarch64/copysign.c
new file mode 100644
index 00000000..9e3b8de3

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

index at:
100644 9e3b8de31e7ba7448f0ce3fbfc5b4f8208331d46	src/math/loongarch64/copysign.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).