Lines Matching refs:counter

185     ($c:ident, $value:ident, $counter:ident, $count:ident) => {{
191 $counter += 1;
206 // Safe is `counter <= step`, or smaller than the table size.
207 ($format:ident, $result:ident, $counter:ident, $value:ident) => {
208 if $counter != 0 {
209 // SAFETY: safe, since `counter <= step`, or smaller than the table size.
210 let small_power = unsafe { f64::int_pow_fast_path($counter, 10) };
212 $counter = 0;
217 // Add a temporary where we won't read the counter results internally.
221 // Safe is `counter <= step`, or smaller than the table size.
222 (@end $format:ident, $result:ident, $counter:ident, $value:ident) => {
223 if $counter != 0 {
224 // SAFETY: safe, since `counter <= step`, or smaller than the table size.
225 let small_power = unsafe { f64::int_pow_fast_path($counter, 10) };
231 (@max $format:ident, $result:ident, $counter:ident, $value:ident, $max:ident) => {
233 $counter = 0;
278 let mut counter: usize = 0;
295 while counter < step && count < max_digits {
297 add_digit!(c, value, counter, count);
306 // SAFETY: safe since `counter <= step`.
307 add_temporary!(@end format, result, counter, value);
313 // SAFETY: safe since `counter <= step`.
314 add_temporary!(@max format, result, counter, value, max_native);
323 add_digit!(c, value, counter, count);
332 while counter < step && count < max_digits {
334 add_digit!(c, value, counter, count);
342 // SAFETY: safe since `counter <= step`.
343 add_temporary!(@end format, result, counter, value);
348 // SAFETY: safe since `counter <= step`.
349 add_temporary!(@max format, result, counter, value, max_native);
354 // once, or counter % step is 0.
355 // SAFETY: safe since `counter <= step`.
356 add_temporary!(@end format, result, counter, value);