diff options
author | Diego Biurrun <diego@biurrun.de> | 2011-06-27 00:42:55 +0200 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2011-06-28 13:14:46 +0200 |
commit | bb00b15f9e4e3c56abf628ed2cb9bfa8965e2bf8 (patch) | |
tree | 060d5cdb9e2b9d0629a3ba09bfbf7b6926bbb379 /libavutil/mathematics.c | |
parent | d2ee495fb241fa4ef5b8b56161328c4379d1c79a (diff) | |
download | ffmpeg-bb00b15f9e4e3c56abf628ed2cb9bfa8965e2bf8.tar.gz |
avutil: Remove unused arbitrary precision integer code.
Diffstat (limited to 'libavutil/mathematics.c')
-rw-r--r-- | libavutil/mathematics.c | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/libavutil/mathematics.c b/libavutil/mathematics.c index 53155c36ec..e6ce2f98ad 100644 --- a/libavutil/mathematics.c +++ b/libavutil/mathematics.c @@ -150,32 +150,3 @@ int64_t av_compare_mod(uint64_t a, uint64_t b, uint64_t mod){ c-= mod; return c; } - -#ifdef TEST -#include "integer.h" -#undef printf -int main(void){ - int64_t a,b,c,d,e; - - 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)); - ai= av_add_i(ai, av_int2i(r)); - - d= av_i2int(av_div_i(ai, av_int2i(c))); - - e= av_rescale(a,b,c); - - if((double)a * (double)b / (double)c > (1LL<<63)) - continue; - - if(d!=e) printf("%"PRId64"*%"PRId64"/%"PRId64"= %"PRId64"=%"PRId64"\n", a, b, c, d, e); - } - } - } - return 0; -} -#endif |