mailing list of musl libc
 help / color / mirror / code / Atom feed
9779c1cdbc09ebf4a3c1d4179def2936508edc84 blob 183 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 lroundf(float x)
{
	long n;
	__asm__ ("fcvt.w.s %0, %1, rmm" : "=r"(n) : "f"(x));
	return n;
}

#else

#include "../lroundf.c"

#endif
debug log:

solving 9779c1cd ...
found 9779c1cd in https://inbox.vuxu.org/musl/20240613083042.562213-1-mzh@mzh.io/

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

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

index at:
100644 9779c1cdbc09ebf4a3c1d4179def2936508edc84	src/math/riscv64/lroundf.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).