mailing list of musl libc
 help / color / mirror / code / Atom feed
d69566bcc068d3dd585a7749dc3603f86a2847e9 blob 197 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 long llrintf (float x)
{
	long long res;
	__asm__ ("fcvt.l.s %0, %1" : "=r" (res) : "f" (x));
	return res;
}

#else

#include "../llrintf.c"

#endif
debug log:

solving d69566b ...
found d69566b 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/llrintf.c b/src/math/riscv64/llrintf.c
new file mode 100644
index 0000000..d69566b

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

index at:
100644 d69566bcc068d3dd585a7749dc3603f86a2847e9	src/math/riscv64/llrintf.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).