Home
last modified time | relevance | path

Searched refs:lastRemovedDigit (Results 1 – 2 of 2) sorted by relevance

/picolibc-latest/newlib/libc/tinystdio/
Dftoa_ryu.c87 uint8_t lastRemovedDigit = 0; in f2d() local
105 lastRemovedDigit = (uint8_t) (mulPow5InvDivPow2(mv, q - 1, -e2 + (int32_t) q - 1 + l) % 10); in f2d()
134 lastRemovedDigit = (uint8_t) (mulPow5divPow2(mv, (uint32_t) (i + 1), j) % 10); in f2d()
225 vrIsTrailingZeros &= lastRemovedDigit == 0; in f2d()
226 lastRemovedDigit = (uint8_t) (vr % 10); in f2d()
238 vrIsTrailingZeros &= lastRemovedDigit == 0; in f2d()
239 lastRemovedDigit = (uint8_t) (vr % 10); in f2d()
247 printf("%u %d\n", vr, lastRemovedDigit); in f2d()
250 if (vrIsTrailingZeros && lastRemovedDigit == 5 && vr % 2 == 0) { in f2d()
252 lastRemovedDigit = 4; in f2d()
[all …]
Ddtoa_ryu.c184 uint8_t lastRemovedDigit = 0; in d2d() local
248 vrIsTrailingZeros &= lastRemovedDigit == 0; in d2d()
249 lastRemovedDigit = (uint8_t) vrMod10; in d2d()
269 vrIsTrailingZeros &= lastRemovedDigit == 0; in d2d()
270 lastRemovedDigit = (uint8_t) vrMod10; in d2d()
278 printf("%" PRIu64 " %d\n", vr, lastRemovedDigit); in d2d()
281 if (vrIsTrailingZeros && lastRemovedDigit == 5 && vr % 2 == 0) { in d2d()
283 lastRemovedDigit = 4; in d2d()
291 … = ((!truncate_max && vr == vm && (!acceptBounds || !vmIsTrailingZeros)) || lastRemovedDigit >= 5); in d2d()