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

#else

#include "../llroundf.c"

#endif
debug log:

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

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

index at:
100644 72b343a190c8947cef0fca31c59ff9988b2ccb8c	src/math/riscv64/llroundf.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).