mailing list of musl libc
 help / color / mirror / code / Atom feed
6f3b1206edcbceb3ff9d77a7c991ce8364f119f8 blob 185 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
 
#include <math.h>

#if __riscv_flen >= 32

long lrintf (float x)
{
	long res;
	__asm__ ("fcvt.l.s %0, %1" : "=r" (res) : "f" (x));
	return res;
}

#else

#include "../lrintf.c"

#endif
debug log:

solving 6f3b120 ...
found 6f3b120 in https://inbox.vuxu.org/musl/20230728061955.20156-2-zhang_fei_0403@163.com/

applying [1/1] https://inbox.vuxu.org/musl/20230728061955.20156-2-zhang_fei_0403@163.com/
diff --git a/src/math/riscv64/lrintf.c b/src/math/riscv64/lrintf.c
new file mode 100644
index 0000000..6f3b120

Checking patch src/math/riscv64/lrintf.c...
Applied patch src/math/riscv64/lrintf.c cleanly.

index at:
100644 6f3b1206edcbceb3ff9d77a7c991ce8364f119f8	src/math/riscv64/lrintf.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).