MCPcopy Index your code
hub / github.com/RustPython/RustPython / advance_adaptive_counter

Function advance_adaptive_counter

crates/compiler-core/src/bytecode.rs:497–499  ·  view source on GitHub ↗
(counter: u16)

Source from the content-addressed store, hash-verified

495/// Decrement adaptive counter by one countdown step.
496#[inline]
497pub const fn advance_adaptive_counter(counter: u16) -> u16 {
498 counter.wrapping_sub(1 << BACKOFF_BITS)
499}
500
501/// Reset adaptive counter with exponential backoff.
502#[inline]

Callers 1

adaptiveMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected