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

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

long long llroundf(float x)
{
	if (isnan(x) || isinf(x)) {
		feraiseexcept(FE_INVALID);
		return 0;
	}

	x = roundf(x);
	if (x > LLONG_MAX || x < LLONG_MIN) {
		feraiseexcept(FE_INVALID);
	}
	return x;
}
debug log:

solving b1bc9ec ...
found b1bc9ec in https://inbox.vuxu.org/musl/20140911073532.GA3179@zx-spectrum/
found 19eb77e in https://git.vuxu.org/mirror/musl/
preparing index
index prepared:
100644 19eb77ee3d568c9d95826a9a29ba5e90e24af819	src/math/llroundf.c

applying [1/1] https://inbox.vuxu.org/musl/20140911073532.GA3179@zx-spectrum/
diff --git a/src/math/llroundf.c b/src/math/llroundf.c
index 19eb77e..b1bc9ec 100644

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

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