[Ffmpeg-cvslog] CVS: ffmpeg/libavutil mathematics.c,1.6,1.7

Michael Niedermayer CVS michael
Sat Apr 29 18:02:31 CEST 2006


Update of /cvsroot/ffmpeg/ffmpeg/libavutil
In directory mail:/var2/tmp/cvs-serv9184

Modified Files:
	mathematics.c 
Log Message:
extend range used for testing (larger range should work too but testing code overflows)


Index: mathematics.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavutil/mathematics.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- mathematics.c	29 Apr 2006 15:38:20 -0000	1.6
+++ mathematics.c	29 Apr 2006 16:02:28 -0000	1.7
@@ -113,9 +113,9 @@
 main(){
     int64_t a,b,c,d,e;
 
-    for(a=7; a<256LL*256*256*256*128; a=(a*3)+1){
-        for(b=3; b<256LL*256*256*256*128; b=(b*5)/4+1){
-            for(c=9; c<256LL*256*256*256*128; c=(c*7)/5+3 ){
+    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){
                 int64_t r= c/2;
                 AVInteger ai;
                 ai= av_mul_i(av_int2i(a), av_int2i(b));





More information about the ffmpeg-cvslog mailing list