From b55c691ffa71f2dd0336ebcfaacbe34de9cd0f40 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 6 May 2008 23:42:16 +0000 Subject: *** empty log message *** --- ev.c | 49 ++++++++++++++++++++++++------------------------- ev.pod | 8 ++++---- 2 files changed, 28 insertions(+), 29 deletions(-) diff --git a/ev.c b/ev.c index 058d7ee..27ff3e1 100644 --- a/ev.c +++ b/ev.c @@ -1372,7 +1372,6 @@ ev_loop_fork (EV_P) { postfork = 1; /* must be in line with ev_default_fork */ } - #endif #if EV_MULTIPLICITY @@ -1463,6 +1462,29 @@ call_pending (EV_P) } } +#if EV_IDLE_ENABLE +void inline_size +idle_reify (EV_P) +{ + if (expect_false (idleall)) + { + int pri; + + for (pri = NUMPRI; pri--; ) + { + if (pendingcnt [pri]) + break; + + if (idlecnt [pri]) + { + queue_events (EV_A_ (W *)idles [pri], idlecnt [pri], EV_IDLE); + break; + } + } + } +} +#endif + void inline_size timers_reify (EV_P) { @@ -1543,29 +1565,6 @@ periodics_reschedule (EV_P) } #endif -#if EV_IDLE_ENABLE -void inline_size -idle_reify (EV_P) -{ - if (expect_false (idleall)) - { - int pri; - - for (pri = NUMPRI; pri--; ) - { - if (pendingcnt [pri]) - break; - - if (idlecnt [pri]) - { - queue_events (EV_A_ (W *)idles [pri], idlecnt [pri], EV_IDLE); - break; - } - } - } -} -#endif - void inline_speed time_update (EV_P_ ev_tstamp max_block) { @@ -1601,7 +1600,7 @@ time_update (EV_P_ ev_tstamp max_block) { rtmn_diff = ev_rt_now - mn_now; - if (fabs (odiff - rtmn_diff) < MIN_TIMEJUMP) + if (expect_true (fabs (odiff - rtmn_diff) < MIN_TIMEJUMP)) return; /* all is well */ ev_rt_now = ev_time (); diff --git a/ev.pod b/ev.pod index 0f0b2e3..fa40f04 100644 --- a/ev.pod +++ b/ev.pod @@ -3321,10 +3321,10 @@ millions of watchers. =item C must hold a time value in seconds with enough accuracy -The type C is used to represent timestamps. It is required to have -at least 51 bits of mantissa, which is good enough for at least into the -year 4000. This requirement is fulfilled by implementations implementing -IEEE 754 (basically all existing ones). +The type C is used to represent timestamps. It is required to +have at least 51 bits of mantissa (and 9 bits of exponent), which is good +enough for at least into the year 4000. This requirement is fulfilled by +implementations implementing IEEE 754 (basically all existing ones). =back -- cgit v1.2.3