Lines Matching refs:pc
74 pc_to_index (size_t pc, size_t offset, unsigned int scale, int prof_uint) in pc_to_index() argument
76 size_t i = (pc - offset) / (prof_uint ? sizeof (int) : sizeof (short)); in pc_to_index()
88 size_t pc, bin_size = (prof_uint ? sizeof (int) : sizeof (short)); in index_to_pc() local
91 pc = offset + (unsigned long long int) n * bin_size * 65536ull / scale; in index_to_pc()
93 pc = (offset + n * bin_size / scale * 65536 in index_to_pc()
96 if (pc_to_index (pc, offset, scale, prof_uint) < n) in index_to_pc()
98 ++pc; in index_to_pc()
100 assert (pc_to_index (pc - 1, offset, scale, prof_uint) < n in index_to_pc()
101 && pc_to_index (pc, offset, scale, prof_uint) >= n); in index_to_pc()
103 return pc; in index_to_pc()
110 size_t lo, hi, mid, pc = pcp; in profil_count() local
114 if (pc >= r->start && pc < r->end) in profil_count()
125 if (pc >= r->start && pc < r->end) in profil_count()
132 if (pc < r->start) in profil_count()
143 i = pc_to_index (pc, region->offset, region->scale, prof_uint); in profil_count()
182 #define profil_count(pc) profil_count (pc, 0) argument
189 #define profil_count(pc) profil_count (pc, 1) argument