mailing list of musl libc
 help / color / mirror / code / Atom feed
c8ddbc6356d2ca54461c9203ae943bda5db19a0d blob 728 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
 
#include "libm.h"

#ifdef LONG_DOUBLE_IS_BINARY64
int __fpclassifyl(long double x)
{
	return __fpclassify(x);
}
#elif defined(LONG_DOUBLE_IS_X87_EXTENDED)
int __fpclassifyl(long double x)
{
	union ldshape u = {x};
	int e = u.i.se & 0x7fff;
	int msb = u.i.m>>63;
	if (!e && !msb)
		return u.i.m ? FP_SUBNORMAL : FP_ZERO;
	if (!msb)
		return FP_NAN;
	if (e == 0x7fff)
		return u.i.m << 1 ? FP_NAN : FP_INFINITE;
	return FP_NORMAL;
}
#elif defined(LONG_DOUBLE_IS_BINARY128)
int __fpclassifyl(long double x)
{
	union ldshape u = {x};
	int e = u.i.se & 0x7fff;
	u.i.se = 0;
	if (!e)
		return u.i2.lo | u.i2.hi ? FP_SUBNORMAL : FP_ZERO;
	if (e == 0x7fff)
		return u.i2.lo | u.i2.hi ? FP_NAN : FP_INFINITE;
	return FP_NORMAL;
}
#endif
debug log:

solving c8ddbc6 ...
found c8ddbc6 in https://inbox.vuxu.org/musl/1457404695-17281-1-git-send-email-masanori.ogino@gmail.com/
found 481c0b9 in https://git.vuxu.org/mirror/musl/
preparing index
index prepared:
100644 481c0b949974ad43a59e95846bf9fb83ff5cbf23	src/math/__fpclassifyl.c

applying [1/1] https://inbox.vuxu.org/musl/1457404695-17281-1-git-send-email-masanori.ogino@gmail.com/
diff --git a/src/math/__fpclassifyl.c b/src/math/__fpclassifyl.c
index 481c0b9..c8ddbc6 100644

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

index at:
100644 c8ddbc6356d2ca54461c9203ae943bda5db19a0d	src/math/__fpclassifyl.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).