mailing list of musl libc
 help / color / mirror / code / Atom feed
10ab475a190724ca2f86ba27dc0251c7afd03313 blob 621 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
 
#include "libm.h"

#ifdef LONG_DOUBLE_IS_BINARY64
long double scalbnl(long double x, int n)
{
	return scalbn(x, n);
}
#elif defined(LONG_DOUBLE_IS_X87_EXTENDED) || defined(LONG_DOUBLE_IS_BINARY128)
long double scalbnl(long double x, int n)
{
	union ldshape u;

	if (n > 16383) {
		x *= 0x1p16383L;
		n -= 16383;
		if (n > 16383) {
			x *= 0x1p16383L;
			n -= 16383;
			if (n > 16383)
				n = 16383;
		}
	} else if (n < -16382) {
		x *= 0x1p-16382L;
		n += 16382;
		if (n < -16382) {
			x *= 0x1p-16382L;
			n += 16382;
			if (n < -16382)
				n = -16382;
		}
	}
	u.f = 1.0;
	u.i.se = 0x3fff + n;
	return x * u.f;
}
#endif
debug log:

solving 10ab475 ...
found 10ab475 in https://inbox.vuxu.org/musl/1457404695-17281-1-git-send-email-masanori.ogino@gmail.com/
found 08a4c58 in https://git.vuxu.org/mirror/musl/
preparing index
index prepared:
100644 08a4c58754d8a237f4441f10b1cce610ef885e43	src/math/scalbnl.c

applying [1/1] https://inbox.vuxu.org/musl/1457404695-17281-1-git-send-email-masanori.ogino@gmail.com/
diff --git a/src/math/scalbnl.c b/src/math/scalbnl.c
index 08a4c58..10ab475 100644

Checking patch src/math/scalbnl.c...
Applied patch src/math/scalbnl.c cleanly.

index at:
100644 10ab475a190724ca2f86ba27dc0251c7afd03313	src/math/scalbnl.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).