2db1a5e50c4167611bccb8eaf75e3e48ee136d74 blob 135 bytes (raw)
1
2
3
4
5
6
7
8
9
10
| | #include <math.h>
long lrintf(float x)
{
long n;
__asm__ (
"fctid %1, %1\n"
"mfvsrd %0, %1\n" : "=r"(n), "+f"(x));
return n;
}
|
debug log:
solving 2db1a5e ...
found 2db1a5e in https://inbox.vuxu.org/musl/CAGWvnymr=J9hFw2CLi6MKAMwWdYbQEjz+oQJ1MrexAaygPoSNA@mail.gmail.com/
applying [1/1] https://inbox.vuxu.org/musl/CAGWvnymr=J9hFw2CLi6MKAMwWdYbQEjz+oQJ1MrexAaygPoSNA@mail.gmail.com/
diff --git a/src/math/powerpc64/lrintf.c b/src/math/powerpc64/lrintf.c
new file mode 100644
index 0000000..2db1a5e
Checking patch src/math/powerpc64/lrintf.c...
Applied patch src/math/powerpc64/lrintf.c cleanly.
index at:
100644 2db1a5e50c4167611bccb8eaf75e3e48ee136d74 src/math/powerpc64/lrintf.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).