… | |
… | |
870 | select (0, 0, 0, 0, &tv); |
870 | select (0, 0, 0, 0, &tv); |
871 | #endif |
871 | #endif |
872 | } |
872 | } |
873 | } |
873 | } |
874 | |
874 | |
875 | inline_speed int |
|
|
876 | ev_timeout_to_ms (ev_tstamp timeout) |
|
|
877 | { |
|
|
878 | int ms = timeout * 1000. + .999999; |
|
|
879 | |
|
|
880 | return expect_true (ms) ? ms : timeout < 1e-6 ? 0 : 1; |
|
|
881 | } |
|
|
882 | |
|
|
883 | /*****************************************************************************/ |
875 | /*****************************************************************************/ |
884 | |
876 | |
885 | #define MALLOC_ROUND 4096 /* prefer to allocate in chunks of this size, must be 2**n and >> 4 longs */ |
877 | #define MALLOC_ROUND 4096 /* prefer to allocate in chunks of this size, must be 2**n and >> 4 longs */ |
886 | |
878 | |
887 | /* find a suitable new size for the given array, */ |
879 | /* find a suitable new size for the given array, */ |