mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-10-25 10:21:16 +00:00
fix warning sign-compare and macro-redefined on Zephyr platform (#4668)
This commit is contained in:
parent
34c6fc94e9
commit
25c5d575a1
|
|
@ -851,7 +851,7 @@ freebsd_floor(double x)
|
||||||
i0 += 1;
|
i0 += 1;
|
||||||
else {
|
else {
|
||||||
j = i1 + (1 << (52 - j0));
|
j = i1 + (1 << (52 - j0));
|
||||||
if (j < i1)
|
if (j < (u_int32_t)i1)
|
||||||
i0 += 1; /* got a carry */
|
i0 += 1; /* got a carry */
|
||||||
i1 = j;
|
i1 = j;
|
||||||
}
|
}
|
||||||
|
|
@ -913,7 +913,7 @@ freebsd_ceil(double x)
|
||||||
i0 += 1;
|
i0 += 1;
|
||||||
else {
|
else {
|
||||||
j = i1 + (1 << (52 - j0));
|
j = i1 + (1 << (52 - j0));
|
||||||
if (j < i1)
|
if (j < (u_int32_t)i1)
|
||||||
i0 += 1; /* got a carry */
|
i0 += 1; /* got a carry */
|
||||||
i1 = j;
|
i1 = j;
|
||||||
}
|
}
|
||||||
|
|
@ -1345,7 +1345,7 @@ freebsd_pow(double x, double y)
|
||||||
k = (iy >> 20) - 0x3ff; /* exponent */
|
k = (iy >> 20) - 0x3ff; /* exponent */
|
||||||
if (k > 20) {
|
if (k > 20) {
|
||||||
j = ly >> (52 - k);
|
j = ly >> (52 - k);
|
||||||
if ((j << (52 - k)) == ly)
|
if (((u_int32_t)(j << (52 - k))) == ly)
|
||||||
yisint = 2 - (j & 1);
|
yisint = 2 - (j & 1);
|
||||||
}
|
}
|
||||||
else if (ly == 0) {
|
else if (ly == 0) {
|
||||||
|
|
|
||||||
|
|
@ -290,7 +290,9 @@ typedef struct timespec os_timespec;
|
||||||
#define CLOCK_REALTIME 1
|
#define CLOCK_REALTIME 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef CLOCK_MONOTONIC
|
||||||
#define CLOCK_MONOTONIC 4
|
#define CLOCK_MONOTONIC 4
|
||||||
|
#endif
|
||||||
|
|
||||||
static inline int
|
static inline int
|
||||||
os_sched_yield(void)
|
os_sched_yield(void)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user