mailing list of musl libc
 help / color / mirror / code / Atom feed
b0ffcc8a9e1a0d1cf7c71f88566b8e99eea6ca23 blob 331 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
 
#include <fenv.h>
#include <math.h>

/* nearbyint is the same as rint, but it must not raise the inexact exception */

double nearbyint(double x)
{
#ifdef FE_INEXACT
#pragma STDC FENV_ACCESS ON
	int e;

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

solving b0ffcc8 ...
found b0ffcc8 in https://inbox.vuxu.org/musl/20121127223758.485b5083.idunham@lavabit.com/
found f4e8aac in https://git.vuxu.org/mirror/musl/
preparing index
index prepared:
100644 f4e8aac4f0118d7d48d1d6a8e4af0fec048ee62a	src/math/nearbyint.c

applying [1/1] https://inbox.vuxu.org/musl/20121127223758.485b5083.idunham@lavabit.com/
diff --git a/src/math/nearbyint.c b/src/math/nearbyint.c
index f4e8aac..b0ffcc8 100644

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

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