ff48d9b1cae6c8577aa7c26934e235d43688afdf blob 260 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 llround(double x)
{
if (isnan(x) || isinf(x)) {
feraiseexcept(FE_INVALID);
return 0;
}
x = round(x);
if (x > LLONG_MAX || x < LLONG_MIN) {
feraiseexcept(FE_INVALID);
}
return x;
}
|
debug log:
solving ff48d9b ...
found ff48d9b in https://inbox.vuxu.org/musl/20140911073532.GA3179@zx-spectrum/
found 4d94787 in https://git.vuxu.org/mirror/musl/
preparing index
index prepared:
100644 4d94787d6227596e0d692622d320f159d8396694 src/math/llround.c
applying [1/1] https://inbox.vuxu.org/musl/20140911073532.GA3179@zx-spectrum/
diff --git a/src/math/llround.c b/src/math/llround.c
index 4d94787..ff48d9b 100644
Checking patch src/math/llround.c...
Applied patch src/math/llround.c cleanly.
index at:
100644 ff48d9b1cae6c8577aa7c26934e235d43688afdf src/math/llround.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).