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 90–101 (view on GitHub).

ComplexityΒΆ

  • Time: @+1

  • Space: @+28

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

SourceΒΆ

Depends onΒΆ

Used byΒΆ

Example usesΒΆ


← Previous: hex.shifts.shl_bit_once