comparison common.h @ 12:ce8f9f4390c3 libavutil

COSMETICS: Remove all trailing whitespace.
author diego
date Sat, 17 Dec 2005 18:14:38 +0000
parents b5bd7d00de0f
children aedb6bd881b9
comparison
equal deleted inserted replaced
11:b5bd7d00de0f 12:ce8f9f4390c3
169 # define INT_BIT 32 169 # define INT_BIT 32
170 # endif 170 # endif
171 #endif 171 #endif
172 172
173 #if defined(CONFIG_OS2) || defined(CONFIG_SUNOS) 173 #if defined(CONFIG_OS2) || defined(CONFIG_SUNOS)
174 static inline float floorf(float f) { 174 static inline float floorf(float f) {
175 return floor(f); 175 return floor(f);
176 } 176 }
177 #endif 177 #endif
178 178
179 #ifdef CONFIG_WIN32 179 #ifdef CONFIG_WIN32
180 180
309 #elif defined(CONFIG_FASTDIV) 309 #elif defined(CONFIG_FASTDIV)
310 # define FASTDIV(a,b) ((uint32_t)((((uint64_t)a)*inverse[b])>>32)) 310 # define FASTDIV(a,b) ((uint32_t)((((uint64_t)a)*inverse[b])>>32))
311 #else 311 #else
312 # define FASTDIV(a,b) ((a)/(b)) 312 # define FASTDIV(a,b) ((a)/(b))
313 #endif 313 #endif
314 314
315 /* define it to include statistics code (useful only for optimizing 315 /* define it to include statistics code (useful only for optimizing
316 codec efficiency */ 316 codec efficiency */
317 //#define STATS 317 //#define STATS
318 318
319 #ifdef STATS 319 #ifdef STATS
422 static inline int ff_sqrt(int a) 422 static inline int ff_sqrt(int a)
423 { 423 {
424 int ret=0; 424 int ret=0;
425 int s; 425 int s;
426 int ret_sq=0; 426 int ret_sq=0;
427 427
428 if(a<128) return ff_sqrt_tab[a]; 428 if(a<128) return ff_sqrt_tab[a];
429 429
430 for(s=15; s>=0; s--){ 430 for(s=15; s>=0; s--){
431 int b= ret_sq + (1<<(s*2)) + (ret<<s)*2; 431 int b= ret_sq + (1<<(s*2)) + (ret<<s)*2;
432 if(b<=a){ 432 if(b<=a){
433 ret_sq=b; 433 ret_sq=b;
434 ret+= 1<<s; 434 ret+= 1<<s;
542 if(256*256*256*64%(tcount+tskip_count)==0){\ 542 if(256*256*256*64%(tcount+tskip_count)==0){\
543 av_log(NULL, AV_LOG_DEBUG, "%"PRIu64" dezicycles in %s, %d runs, %d skips\n", tsum*10/tcount, id, tcount, tskip_count);\ 543 av_log(NULL, AV_LOG_DEBUG, "%"PRIu64" dezicycles in %s, %d runs, %d skips\n", tsum*10/tcount, id, tcount, tskip_count);\
544 }\ 544 }\
545 } 545 }
546 #else 546 #else
547 #define START_TIMER 547 #define START_TIMER
548 #define STOP_TIMER(id) {} 548 #define STOP_TIMER(id) {}
549 #endif 549 #endif
550 550
551 /* avoid usage of various functions */ 551 /* avoid usage of various functions */
552 #define malloc please_use_av_malloc 552 #define malloc please_use_av_malloc