c62e306c50cd9b7242126dc3926e2d58a9abe93d blob 184 bytes (raw)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
| | #include <math.h>
#if __riscv_flen >= 64
long lrint (double x)
{
long res;
__asm__ ("fcvt.l.d %0, %1" : "=r" (res) : "f" (x));
return res;
}
#else
#include "../lrint.c"
#endif
|
debug log:
solving c62e306 ...
found c62e306 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/lrint.c b/src/math/riscv64/lrint.c
new file mode 100644
index 0000000..c62e306
Checking patch src/math/riscv64/lrint.c...
Applied patch src/math/riscv64/lrint.c cleanly.
index at:
100644 c62e306c50cd9b7242126dc3926e2d58a9abe93d src/math/riscv64/lrint.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).