Changeset 3081 for pjproject/trunk/pjlib/src/pjlib-test/pool_perf.c
- Timestamp:
- Jan 29, 2010 10:10:49 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/src/pjlib-test/pool_perf.c
r2394 r3081 128 128 /* Initialize size of chunks to allocate in for the test. */ 129 129 for (i=0; i<COUNT; ++i) { 130 unsigned aligned_size; 130 131 sizes[i] = MIN_SIZE + (pj_rand() % MAX_SIZE); 131 total_size += sizes[i]; 132 aligned_size = sizes[i]; 133 if (aligned_size & (PJ_POOL_ALIGNMENT-1)) 134 aligned_size = ((aligned_size + PJ_POOL_ALIGNMENT - 1)) & ~(PJ_POOL_ALIGNMENT - 1); 135 total_size += aligned_size; 132 136 } 133 137
Note: See TracChangeset
for help on using the changeset viewer.