view test/i3.c @ 856:d9dd3e6e7c5f

macro compatibility
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Tue, 22 Nov 2011 05:44:49 +0900
parents 4e08fbf6754b
children 5313ed059cee
line wrap: on
line source


extern int printf(const char *,...);

// #define CASE_MERGE_RATE 50
unsigned int CASE_MERGE_RATE=50;
unsigned int a=100;

int
main()
{
	int max = 524288;
	int min = 131072;
	int range = 393216;
	int count1 = 3;
	int g = 1;

//  range 393216 min 131072, max 524288, count 3, delta 1, rate 0.000762939 t=0
	
        printf("## range %d min %d, max %d, count %d, delta %d, rate %g t=%d\n",
            range, min,max,count1,g,
                 ((double)count1)*100.0/range,
               count1*128>(range*128*CASE_MERGE_RATE/a)
        );
	return 0;
}