hex.shifts.shr_bit_once

{next(1bit),dst(1hex)} = dst >> 1

next is the bit-address of the next msb, dst is a hex.
@note, this should be called in a regular order (so that the “next” is already shifted).

Signature

def shr_bit_once dst, next @ switch, xor_by, end { ... }

Defined in hex/shifts.fj — lines 88–99 (view on GitHub).

Complexity

  • Time: @+1

  • Space: @+28

See the complexity glossary for what @, w, dw, dbit, n mean.

Depends on

Used by