Lines Matching defs:scale
218 * that the scale factor has an exact cube root. Finally, the scale factor
222 static const unsigned int scale = 1 << 18;
226 static const unsigned int log_2 = 0x02c5c8; /* scale * log(2) */
227 static const unsigned int log_e = 0x05c551; /* scale * log2(M_E) */
228 static const unsigned int c1_923 = 0x07b126; /* scale * 1.923 */
229 static const unsigned int c4_690 = 0x12c28f; /* scale * 4.690 */
236 return a * b / scale;
278 * to go here that checks v < scale and if so multiplies it by 2 and
279 * reduces r by scale. This also means making r signed.
281 while (v >= 2 * scale) {
283 r += scale;
285 for (i = scale / 2; i != 0; i /= 2) {
287 if (v >= 2 * scale) {
292 r = (r * (uint64_t)scale) / log_e;