diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2006-05-29 19:44:17 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2006-05-29 19:44:17 +0000 |
commit | fc861443d3e2375ec82d4263aaa75e46701075fa (patch) | |
tree | ec60dfd769019b578c89b305658e64dcf91f69ce /libavutil/mathematics.c | |
parent | 3bbe7f5d6b8215ed2dcce0c50e93137919f3d384 (diff) | |
download | ffmpeg-fc861443d3e2375ec82d4263aaa75e46701075fa.tar.gz |
improve selftest
Originally committed as revision 5424 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil/mathematics.c')
-rw-r--r-- | libavutil/mathematics.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libavutil/mathematics.c b/libavutil/mathematics.c index 1d7706f25a..951324e99a 100644 --- a/libavutil/mathematics.c +++ b/libavutil/mathematics.c @@ -109,13 +109,14 @@ int64_t av_rescale_q(int64_t a, AVRational bq, AVRational cq){ return av_rescale_rnd(a, b, c, AV_ROUND_NEAR_INF); } #if 0 +#include "integer.h" #undef printf main(){ int64_t a,b,c,d,e; - for(a=7; a<(1LL<<60); a=(a*3)+1){ - for(b=3; b<(1LL<<60); b=(b*5)/4+1){ - for(c=9; c<(1LL<<60); c=(c*7)/5+3){ + for(a=7; a<(1LL<<62); a+=a/3+1){ + for(b=3; b<(1LL<<62); b+=b/4+1){ + for(c=9; c<(1LL<<62); c+=(c*2)/5+3){ int64_t r= c/2; AVInteger ai; ai= av_mul_i(av_int2i(a), av_int2i(b)); |