mailing list of musl libc
 help / color / mirror / code / Atom feed
932d353e38fa06bae7f1bca819c2fe47e8e837e2 blob 115 bytes (raw)

1
2
3
4
5
6
7
8
 
#include <math.h>

long lrintf(float x)
{
	long r;
	__asm__ ("fistpll %0" : "=m"(r) : "t"(x) : "st");
	return r;
}
debug log:

solving 932d353e ...
found 932d353e in https://inbox.vuxu.org/musl/20200111152354.5743-1-amonakov@ispras.ru/

applying [1/1] https://inbox.vuxu.org/musl/20200111152354.5743-1-amonakov@ispras.ru/
diff --git a/src/math/i386/lrintf.c b/src/math/i386/lrintf.c
new file mode 100644
index 00000000..932d353e

Checking patch src/math/i386/lrintf.c...
Applied patch src/math/i386/lrintf.c cleanly.

index at:
100644 932d353e38fa06bae7f1bca819c2fe47e8e837e2	src/math/i386/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).