Mercurial > repos > rhope
comparison cbackend.rhope @ 114:25a205094f9b
More performance optimizations
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Wed, 13 Oct 2010 01:15:04 +0000 |
parents | 43cc42df26cc |
children | 60906f8803ef |
comparison
equal
deleted
inserted
replaced
110:336da6ce8174 | 114:25a205094f9b |
---|---|
1611 | 1611 |
1612 #ifdef ENABLE_PROFILING | 1612 #ifdef ENABLE_PROFILING |
1613 for (idx = 0; idx < END; ++idx) | 1613 for (idx = 0; idx < END; ++idx) |
1614 { | 1614 { |
1615 if(profile_counts[idx]) | 1615 if(profile_counts[idx]) |
1616 printf(\"Func: %d\tCount: %llu\tTime: %llu\tAvg: %f\tSelf: %llu\tAvg: %f\n\", idx, profile_counts[idx], profile_totals[idx], ((double)profile_totals[idx])/((double)profile_counts[idx]), profile_selftotals[idx], ((double)profile_selftotals[idx])/((double)profile_counts[idx])); | 1616 printf(\"Func: %d\tCount: %llu\tTime: %llu\tAvg: %f\tSelf: %llu\tAvg: %f\\n\", idx, profile_counts[idx], profile_totals[idx], ((double)profile_totals[idx])/((double)profile_counts[idx]), profile_selftotals[idx], ((double)profile_selftotals[idx])/((double)profile_counts[idx])); |
1617 } | 1617 } |
1618 #endif | 1618 #endif |
1619 if (!numret) | 1619 if (!numret) |
1620 return 0; | 1620 return 0; |
1621 if (numret < 0) | 1621 if (numret < 0) |