fewer runs for max
authorMatthias Braun <matze@braunis.de>
Mon, 16 Oct 2006 12:24:50 +0000 (12:24 +0000)
committerMatthias Braun <matze@braunis.de>
Mon, 16 Oct 2006 12:24:50 +0000 (12:24 +0000)
ir/be/test/max.c

index 6cb2230..600e4cb 100644 (file)
@@ -34,12 +34,15 @@ void dequant_h263_inter_c(short *data, const short *coeff, const unsigned int qu
        }
 }
 
-int main(int argc){
+int main(int argc, char **argv){
   short cur[MAX];
   short ref[MAX];
-  int numofruns = 1000;
+  int numofruns = 30;
   int i,ii;
 
+  if(argc > 1)
+         numofruns = atoi(argv[1]);
+
   for (i = 0; i < numofruns; i++){
     /* Reset cache. Alles andere ist unrealistisch. */
     for(ii = 0; ii < MAX; ii++){