remove a division from STOP_TIMER
authorLoren Merritt <lorenm@u.washington.edu>
Thu, 21 Sep 2006 18:00:05 +0000 (18:00 +0000)
committerLoren Merritt <lorenm@u.washington.edu>
Thu, 21 Sep 2006 18:00:05 +0000 (18:00 +0000)
Originally committed as revision 6315 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavutil/common.h

index 31142b9..bd92dda 100644 (file)
@@ -386,7 +386,7 @@ tend= read_time();\
       tcount++;\
   }else\
       tskip_count++;\
       tcount++;\
   }else\
       tskip_count++;\
-  if(256*256*256*64%(tcount+tskip_count)==0){\
+  if(((tcount+tskip_count)&(tcount+tskip_count-1))==0){\
       av_log(NULL, AV_LOG_DEBUG, "%"PRIu64" dezicycles in %s, %d runs, %d skips\n", tsum*10/tcount, id, tcount, tskip_count);\
   }\
 }
       av_log(NULL, AV_LOG_DEBUG, "%"PRIu64" dezicycles in %s, %d runs, %d skips\n", tsum*10/tcount, id, tcount, tskip_count);\
   }\
 }