Mercurial > libavutil.hg
comparison integer.c @ 427:e7192ff1857d libavutil
Fix a couple of 'return type defaults to int' and 'control reaches end of
non-void function' warnings in test code.
| author | diego |
|---|---|
| date | Thu, 10 Jan 2008 10:35:37 +0000 |
| parents | d9390a931aef |
| children | 4e4ba0186360 |
comparison
equal
deleted
inserted
replaced
| 426:d9390a931aef | 427:e7192ff1857d |
|---|---|
| 169 7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7, | 169 7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7, |
| 170 7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7, | 170 7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7, |
| 171 7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7 | 171 7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7 |
| 172 }; | 172 }; |
| 173 | 173 |
| 174 main(void){ | 174 int main(void){ |
| 175 int64_t a,b; | 175 int64_t a,b; |
| 176 | 176 |
| 177 for(a=7; a<256*256*256; a+=13215){ | 177 for(a=7; a<256*256*256; a+=13215){ |
| 178 for(b=3; b<256*256*256; b+=27118){ | 178 for(b=3; b<256*256*256; b+=27118){ |
| 179 AVInteger ai= av_int2i(a); | 179 AVInteger ai= av_int2i(a); |
| 190 assert(av_i2int(av_shr_i(ai,-17)) == a<<17); | 190 assert(av_i2int(av_shr_i(ai,-17)) == a<<17); |
| 191 assert(av_log2_i(ai) == av_log2(a)); | 191 assert(av_log2_i(ai) == av_log2(a)); |
| 192 assert(av_i2int(av_div_i(ai,bi)) == a/b); | 192 assert(av_i2int(av_div_i(ai,bi)) == a/b); |
| 193 } | 193 } |
| 194 } | 194 } |
| 195 return 0; | |
| 195 } | 196 } |
| 196 #endif | 197 #endif |
