mailing list of musl libc
 help / color / mirror / code / Atom feed
9a4e1a2763cf90282f146ea7fe9ee6a9b2c03d5c blob 267 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 llroundl(long double x)
{
	if (isnan(x) || isinf(x)) {
		feraiseexcept(FE_INVALID);
		return 0;
	}

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

solving 9a4e1a2 ...
found 9a4e1a2 in https://inbox.vuxu.org/musl/20140911073532.GA3179@zx-spectrum/
found 2c2ee5e in https://git.vuxu.org/mirror/musl/
preparing index
index prepared:
100644 2c2ee5ecd68596965567a90347a9b7fc4111b864	src/math/llroundl.c

applying [1/1] https://inbox.vuxu.org/musl/20140911073532.GA3179@zx-spectrum/
diff --git a/src/math/llroundl.c b/src/math/llroundl.c
index 2c2ee5e..9a4e1a2 100644

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

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