Lines Matching defs:tsc_start

85     cycles_t tsc_start, tsc_end;
106 tsc_start = bench_tsc();
109 if (tsc_end < tsc_start) {
110 result[0] = (LONG_MAX - tsc_start) + tsc_end - bench_tscoverhead();
112 result[0] = (tsc_end - tsc_start - bench_tscoverhead());
117 tsc_start = bench_tsc();
122 if (tsc_end < tsc_start) {
123 result[1] = (LONG_MAX - tsc_start) + tsc_end - bench_tscoverhead();
125 result[1] = (tsc_end - tsc_start - bench_tscoverhead());
131 tsc_start = bench_tsc();
136 if (tsc_end < tsc_start) {
137 result[2] = (LONG_MAX - tsc_start) + tsc_end - bench_tscoverhead();
139 result[2] = (tsc_end - tsc_start - bench_tscoverhead());
167 static inline cycles_t calculate_time(cycles_t tsc_start,
171 if (tsc_end < tsc_start) {
172 result = (LONG_MAX - tsc_start) + tsc_end - bench_tscoverhead();
174 result = (tsc_end - tsc_start - bench_tscoverhead());
183 cycles_t tsc_start, tsc_end;
208 tsc_start = bench_tsc();
211 result = calculate_time(tsc_start, tsc_end);
229 cycles_t tsc_start, tsc_end;
256 tsc_start = bench_tsc();
261 result = calculate_time(tsc_start, tsc_end);
280 cycles_t tsc_start, tsc_end;
325 tsc_start = bench_tsc();
334 result = calculate_time(tsc_start, tsc_end);
460 cycles_t tsc_start, tsc_end;
493 tsc_start = bench_tsc();
500 result = calculate_time(tsc_start, tsc_end);
521 cycles_t tsc_start, tsc_end;
558 tsc_start = bench_tsc();
605 result = calculate_time(tsc_start, tsc_end);
644 cycles_t tsc_start;
675 tsc_start = bench_tsc();
722 if (result - tsc_start > bench_tscoverhead()) {
723 debug_printf("%lu %lu", result - tsc_start, bench_tscoverhead());
725 if (result < tsc_start) {
726 result = (LONG_MAX - tsc_start) + result - bench_tscoverhead();
728 result = (result - tsc_start - bench_tscoverhead());