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

Comparing libev/ev.c (file contents):
Revision 1.399 by root, Mon Sep 26 12:32:21 2011 UTC vs.
Revision 1.400 by root, Sat Oct 15 09:05:03 2011 UTC

1301 1301
1302 do 1302 do
1303 ncur <<= 1; 1303 ncur <<= 1;
1304 while (cnt > ncur); 1304 while (cnt > ncur);
1305 1305
1306 /* if size is large, round to MALLOC_ROUND - 4 * longs to accomodate malloc overhead */ 1306 /* if size is large, round to MALLOC_ROUND - 4 * longs to accommodate malloc overhead */
1307 if (elem * ncur > MALLOC_ROUND - sizeof (void *) * 4) 1307 if (elem * ncur > MALLOC_ROUND - sizeof (void *) * 4)
1308 { 1308 {
1309 ncur *= elem; 1309 ncur *= elem;
1310 ncur = (ncur + elem + (MALLOC_ROUND - 1) + sizeof (void *) * 4) & ~(MALLOC_ROUND - 1); 1310 ncur = (ncur + elem + (MALLOC_ROUND - 1) + sizeof (void *) * 4) & ~(MALLOC_ROUND - 1);
1311 ncur = ncur - sizeof (void *) * 4; 1311 ncur = ncur - sizeof (void *) * 4;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines