hex.shifts.shl_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 reverse order (so that the β€œnext” is already shifted).

SignatureΒΆ

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

Defined in hex/shifts.fj β€” lines 70–81 (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.shr_hex/3 Next: hex.shifts.shr_bit_once β†’