mailing list of musl libc
 help / color / mirror / code / Atom feed
56dea06ad500f54d70ca0c478363296bed251dbf blob 196 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
 
#include <math.h>

#if defined (__HTM__) || __ARCH__ >= 9

double nearbyint(double x)
{
	__asm__ ("fidbra %0, 0, %1, 4" : "=f"(x) : "f"(x));
	return x;
}

#else

#include "../nearbyint.c"

#endif
debug log:

solving 56dea06 ...
found 56dea06 in https://inbox.vuxu.org/musl/CAGWvnykYbN-OyJOkn8=eKFvuxAnMXQM01Us9iWOHy6w86_JM8w@mail.gmail.com/
found 0d3359f in https://inbox.vuxu.org/musl/CAGWvnykYbN-OyJOkn8=eKFvuxAnMXQM01Us9iWOHy6w86_JM8w@mail.gmail.com/ ||
	https://inbox.vuxu.org/musl/CAGWvnynPNVY6Xgz8+S=wOtQuXFis=4eH1-523d=PvtnRbSGCUg@mail.gmail.com/

applying [1/3] https://inbox.vuxu.org/musl/CAGWvnykYbN-OyJOkn8=eKFvuxAnMXQM01Us9iWOHy6w86_JM8w@mail.gmail.com/
diff --git a/src/math/s390x/nearbyint.c b/src/math/s390x/nearbyint.c
new file mode 100644
index 0000000..0d3359f

Checking patch src/math/s390x/nearbyint.c...
Applied patch src/math/s390x/nearbyint.c cleanly.

skipping https://inbox.vuxu.org/musl/CAGWvnynPNVY6Xgz8+S=wOtQuXFis=4eH1-523d=PvtnRbSGCUg@mail.gmail.com/ for 0d3359f
index at:
100644 0d3359f3e2d1715dc687dc125a503aab113259ef	src/math/s390x/nearbyint.c

applying [2/3] https://inbox.vuxu.org/musl/CAGWvnykYbN-OyJOkn8=eKFvuxAnMXQM01Us9iWOHy6w86_JM8w@mail.gmail.com/
diff --git a/src/math/s390x/nearbyint.c b/src/math/s390x/nearbyint.c
index 0d3359f..56dea06 100644

Checking patch src/math/s390x/nearbyint.c...
Applied patch src/math/s390x/nearbyint.c cleanly.

index at:
100644 56dea06ad500f54d70ca0c478363296bed251dbf	src/math/s390x/nearbyint.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).