2b5ea254cdabe3deec9ad9e775cc41b056c58620 blob 196 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 long llrint (double x)
{
long long res;
__asm__ ("fcvt.l.d %0, %1" : "=r" (res) : "f" (x));
return res;
}
#else
#include "../llrint.c"
#endif
|
debug log:
solving 2b5ea25 ...
found 2b5ea25 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/llrint.c b/src/math/riscv64/llrint.c
new file mode 100644
index 0000000..2b5ea25
Checking patch src/math/riscv64/llrint.c...
Applied patch src/math/riscv64/llrint.c cleanly.
index at:
100644 2b5ea254cdabe3deec9ad9e775cc41b056c58620 src/math/riscv64/llrint.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).