Commit 78d099ad authored by michael's avatar michael

improve selftest


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@5424 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 0a58acc7
...@@ -109,13 +109,14 @@ int64_t av_rescale_q(int64_t a, AVRational bq, AVRational cq){ ...@@ -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); return av_rescale_rnd(a, b, c, AV_ROUND_NEAR_INF);
} }
#if 0 #if 0
#include "integer.h"
#undef printf #undef printf
main(){ main(){
int64_t a,b,c,d,e; int64_t a,b,c,d,e;
for(a=7; a<(1LL<<60); a=(a*3)+1){ for(a=7; a<(1LL<<62); a+=a/3+1){
for(b=3; b<(1LL<<60); b=(b*5)/4+1){ for(b=3; b<(1LL<<62); b+=b/4+1){
for(c=9; c<(1LL<<60); c=(c*7)/5+3){ for(c=9; c<(1LL<<62); c+=(c*2)/5+3){
int64_t r= c/2; int64_t r= c/2;
AVInteger ai; AVInteger ai;
ai= av_mul_i(av_int2i(a), av_int2i(b)); ai= av_mul_i(av_int2i(a), av_int2i(b));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment