mailing list of musl libc
 help / color / mirror / code / Atom feed
7d97b661344f9bf0d34b0e4666c0270043af96da blob 405 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>

#if LDBL_MANT_DIG == 53 && LDBL_MAX_EXP == 1024
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 7d97b66 ...
found 7d97b66 in https://inbox.vuxu.org/musl/20121127223758.485b5083.idunham@lavabit.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/20121127223758.485b5083.idunham@lavabit.com/
diff --git a/src/math/nearbyintl.c b/src/math/nearbyintl.c
index 8285249..7d97b66 100644

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

index at:
100644 7d97b661344f9bf0d34b0e4666c0270043af96da	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).