| 806 | COMMANDN(recalc, calclight, ""); |
| 807 | |
| 808 | void countperfectmips(int mip, int xx, int yy, int bs, int *stats) |
| 809 | { |
| 810 | int mfactor = sfactor - mip; |
| 811 | if(!bs) bs = 1 << mfactor; |
| 812 | for(int y = yy; y < yy + bs; y++) for(int x = xx; x < xx + bs; x++) |
| 813 | { |
| 814 | sqr *r = SWS(wmip[mip], x, y, mfactor); |
| 815 | if(r->defer && mip > 0) countperfectmips(mip - 1, x * 2, y * 2, 2, stats); |
| 816 | else stats[mip]++; |
| 817 | } |
| 818 | } |
| 819 | |
| 820 | COMMANDF(calcmipstats, "", () |
| 821 | { |
no outgoing calls
no test coverage detected