Mercurial > libavutil.hg
comparison common.h @ 112:aedf5cf3de93 libavutil
remove a division from STOP_TIMER
author | lorenm |
---|---|
date | Thu, 21 Sep 2006 18:00:05 +0000 |
parents | 6199da3bf29e |
children | 8fc54918226e |
comparison
equal
deleted
inserted
replaced
111:6199da3bf29e | 112:aedf5cf3de93 |
---|---|
384 if(tcount<2 || tend - tstart < 8*tsum/tcount){\ | 384 if(tcount<2 || tend - tstart < 8*tsum/tcount){\ |
385 tsum+= tend - tstart;\ | 385 tsum+= tend - tstart;\ |
386 tcount++;\ | 386 tcount++;\ |
387 }else\ | 387 }else\ |
388 tskip_count++;\ | 388 tskip_count++;\ |
389 if(256*256*256*64%(tcount+tskip_count)==0){\ | 389 if(((tcount+tskip_count)&(tcount+tskip_count-1))==0){\ |
390 av_log(NULL, AV_LOG_DEBUG, "%"PRIu64" dezicycles in %s, %d runs, %d skips\n", tsum*10/tcount, id, tcount, tskip_count);\ | 390 av_log(NULL, AV_LOG_DEBUG, "%"PRIu64" dezicycles in %s, %d runs, %d skips\n", tsum*10/tcount, id, tcount, tskip_count);\ |
391 }\ | 391 }\ |
392 } | 392 } |
393 #else | 393 #else |
394 #define START_TIMER | 394 #define START_TIMER |