# HG changeset patch # User michael # Date 1148931857 0 # Node ID e2d207b1cb8e802e9c3c9e7f094c745dfe1e115a # Parent b6f5cb968a88c122076067e82dd990243615681f improve selftest diff -r b6f5cb968a88 -r e2d207b1cb8e mathematics.c --- a/mathematics.c Wed May 17 23:40:32 2006 +0000 +++ b/mathematics.c Mon May 29 19:44:17 2006 +0000 @@ -109,13 +109,14 @@ 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));