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

Comparing libev/ev.c (file contents):
Revision 1.374 by root, Sat Feb 26 15:21:01 2011 UTC vs.
Revision 1.375 by root, Sat Jun 4 05:25:03 2011 UTC

870 select (0, 0, 0, 0, &tv); 870 select (0, 0, 0, 0, &tv);
871#endif 871#endif
872 } 872 }
873} 873}
874 874
875inline_speed int
876ev_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, */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines