mailing list of musl libc
 help / color / mirror / code / Atom feed
0d0994e66ce8ffa2bddb09c62fd7bbeb1862d362 blob 389 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
 
#include <math.h>
#include <float.h>

#ifdef LONG_DOUBLE_IS_BINARY64
long double nearbyintl(long double x)
{
	return nearbyint(x);
}
#else
#include <fenv.h>
long double nearbyintl(long double x)
{
#ifdef FE_INEXACT
	#pragma STDC FENV_ACCESS ON
	int e;

	e = fetestexcept(FE_INEXACT);
#endif
	x = rintl(x);
#ifdef FE_INEXACT
	if (!e)
		feclearexcept(FE_INEXACT);
#endif
	return x;
}
#endif
debug log:

solving 0d0994e ...
found 0d0994e in https://inbox.vuxu.org/musl/1457404695-17281-1-git-send-email-masanori.ogino@gmail.com/
found 8285249 in https://git.vuxu.org/mirror/musl/
preparing index
index prepared:
100644 82852492f8108b875fa6c588af96aecf358475b9	src/math/nearbyintl.c

applying [1/1] https://inbox.vuxu.org/musl/1457404695-17281-1-git-send-email-masanori.ogino@gmail.com/
diff --git a/src/math/nearbyintl.c b/src/math/nearbyintl.c
index 8285249..0d0994e 100644

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

index at:
100644 0d0994e66ce8ffa2bddb09c62fd7bbeb1862d362	src/math/nearbyintl.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).