ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libev/ev.c
(Generate patch)

Comparing libev/ev.c (file contents):
Revision 1.367 by root, Tue Jan 11 02:15:58 2011 UTC vs.
Revision 1.368 by root, Mon Jan 17 12:11:11 2011 UTC

815 select (0, 0, 0, 0, &tv); 815 select (0, 0, 0, 0, &tv);
816#endif 816#endif
817 } 817 }
818} 818}
819 819
820inline_speed int
821ev_timeout_to_ms (ev_tstamp timeout)
822{
823 int ms = timeout * 1000. + .999999;
824
825 return expect_true (ms) ? ms : timeout < 1e-6 ? 0 : 1;
826}
827
820/*****************************************************************************/ 828/*****************************************************************************/
821 829
822#define MALLOC_ROUND 4096 /* prefer to allocate in chunks of this size, must be 2**n and >> 4 longs */ 830#define MALLOC_ROUND 4096 /* prefer to allocate in chunks of this size, must be 2**n and >> 4 longs */
823 831
824/* find a suitable new size for the given array, */ 832/* find a suitable new size for the given array, */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines