3e5269dd3fca6657961c12f2707ac9cc218e6d15 blob 135 bytes (raw)
1
2
3
4
5
6
7
8
9
10
| | #include <math.h>
long lrint(double x)
{
long n;
__asm__ (
"fctid %1, %1\n"
"mfvsrd %0, %1\n" : "=r"(n), "+d"(x));
return n;
}
|
debug log:
solving 3e5269d ...
found 3e5269d 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/lrint.c b/src/math/powerpc64/lrint.c
new file mode 100644
index 0000000..3e5269d
Checking patch src/math/powerpc64/lrint.c...
Applied patch src/math/powerpc64/lrint.c cleanly.
index at:
100644 3e5269dd3fca6657961c12f2707ac9cc218e6d15 src/math/powerpc64/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).