Lines Matching refs:scale
38 unsigned int scale; member
65 .scale = 2,
74 pc_to_index (size_t pc, size_t offset, unsigned int scale, int prof_uint) in pc_to_index() argument
79 return (unsigned long long int) i * scale / 65536; in pc_to_index()
81 return i / 65536 * scale + i % 65536 * scale / 65536; in pc_to_index()
85 index_to_pc (unsigned long int n, size_t offset, unsigned int scale, in index_to_pc() argument
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()
94 + n * bin_size % scale * 65536 / scale); in index_to_pc()
96 if (pc_to_index (pc, offset, scale, prof_uint) < n) 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()
143 i = pc_to_index (pc, region->offset, region->scale, prof_uint); in profil_count()
203 r[i].scale = p->pr_scale; in insert()