Mercurial > hg > CbC > old > device
comparison test/int.c @ 690:5d3b4669854c
fix prindirect
author | kono |
---|---|
date | Wed, 10 Oct 2007 15:05:04 +0900 |
parents | 0c256ea2a97e |
children | c2c709727221 |
comparison
equal
deleted
inserted
replaced
689:baa67e2e54d2 | 690:5d3b4669854c |
---|---|
371 } | 371 } |
372 | 372 |
373 int | 373 int |
374 test2(int f,int i) | 374 test2(int f,int i) |
375 { | 375 { |
376 int g,h; | 376 int g,h,s; |
377 | 377 |
378 printf("#0370:rec: %d %d\n",i,f); | |
378 if (i<=0) return f; | 379 if (i<=0) return f; |
379 #if 0 | |
380 printf("#0379:rec: %d %d\n",i,f); | |
381 #endif | |
382 g = f*2; | 380 g = f*2; |
383 h = f-3.5; | 381 h = f-3.5; |
382 #if 1 | |
383 printf("#0371:rec: %d %d\n",i,f); | |
384 s = f*1.5; | |
385 printf("#0372: %d\n", s); | |
386 s = test2(s,i-1); | |
387 printf("#0373: %d\n", s); | |
388 s = s/(h-1); | |
389 printf("#0374: %d\n", s); | |
390 printf("#0375: %d\n", h/3-(3.0-(g+3)*s/(h-1))); | |
391 #endif | |
384 return h/3-(3.0-(g+3)*test2(f*1.5,i-1)/(h-1)); | 392 return h/3-(3.0-(g+3)*test2(f*1.5,i-1)/(h-1)); |
385 } | 393 } |
386 | 394 |
387 int | 395 int |
388 test3(int base,int base1) | 396 test3(int base,int base1) |