Lines Matching refs:q
89 const uint32_t q = log10Pow2(e2); in f2d() local
90 e10 = (int32_t) q; in f2d()
91 const int32_t k = FLOAT_POW5_INV_BITCOUNT + pow5bits((int32_t) q) - 1; in f2d()
92 const int32_t i = -e2 + (int32_t) q + k; in f2d()
93 vr = mulPow5InvDivPow2(mv, q, i); in f2d()
94 vp = mulPow5InvDivPow2(mp, q, i); in f2d()
95 vm = mulPow5InvDivPow2(mm, q, i); in f2d()
97 printf("%u * 2^%d / 10^%u\n", mv, e2, q); in f2d()
100 if (q != 0 && (vp - 1) / 10 <= vm / 10) { in f2d()
104 const int32_t l = FLOAT_POW5_INV_BITCOUNT + pow5bits((int32_t) (q - 1)) - 1; in f2d()
105 lastRemovedDigit = (uint8_t) (mulPow5InvDivPow2(mv, q - 1, -e2 + (int32_t) q - 1 + l) % 10); in f2d()
107 if (q <= 9) { in f2d()
111 vrIsTrailingZeros = multipleOfPowerOf5_32(mv, q); in f2d()
113 vmIsTrailingZeros = multipleOfPowerOf5_32(mm, q); in f2d()
115 vp -= multipleOfPowerOf5_32(mp, q); in f2d()
119 const uint32_t q = log10Pow5(-e2); in f2d() local
120 e10 = (int32_t) q + e2; in f2d()
121 const int32_t i = -e2 - (int32_t) q; in f2d()
123 int32_t j = (int32_t) q - k; in f2d()
128 printf("%u * 5^%d / 10^%u\n", mv, -e2, q); in f2d()
129 printf("%u %d %d %d\n", q, i, k, j); in f2d()
132 if (q != 0 && (vp - 1) / 10 <= vm / 10) { in f2d()
133 j = (int32_t) q - 1 - (pow5bits(i + 1) - FLOAT_POW5_BITCOUNT); in f2d()
136 if (q <= 1) { in f2d()
147 } else if (q < 31) { // TODO(ulfjack): Use a tighter bound here. in f2d()
148 vrIsTrailingZeros = multipleOfPowerOf2_32(mv, q - 1); in f2d()