mailing list of musl libc
 help / color / mirror / code / Atom feed
db2d58dfd2ac4f0ec1371f86319c8b09ba654d4f blob 195 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 n;
	__asm__ ("fcvt.l.s %0, %1, rmm" : "=r"(n) : "f"(x));
	return n;
}

#else

#include "../llroundf.c"

#endif
debug log:

solving db2d58df ...
found db2d58df in https://inbox.vuxu.org/musl/20240613083042.562213-1-mzh@mzh.io/ ||
	https://inbox.vuxu.org/musl/20240612090018.258573-1-mzh@mzh.io/

applying [1/2] https://inbox.vuxu.org/musl/20240613083042.562213-1-mzh@mzh.io/
diff --git a/src/math/riscv64/llroundf.c b/src/math/riscv64/llroundf.c
new file mode 100644
index 00000000..db2d58df

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

skipping https://inbox.vuxu.org/musl/20240612090018.258573-1-mzh@mzh.io/ for db2d58df
index at:
100644 db2d58dfd2ac4f0ec1371f86319c8b09ba654d4f	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).