bit.print_hex_uint.print_digitΒΆ
Print one hex digit, but only after the first non-zero digit has been seen (suppresses leading zeros). Inner loop of bit.print_hex_uint.
SignatureΒΆ
def print_digit hex, printed_flag @ continue, ascii, end { ... }
Defined in bit/output.fj β lines 98β112 (view on GitHub).
ComplexityΒΆ
Time:
29@+34Space:
35@+57
See the complexity glossary for what @, w, dw, dbit, n mean.
SourceΒΆ
Click to view the macro body
def print_digit hex, printed_flag @ continue, ascii, end {
..if1 4, hex, continue
..if1 printed_flag, continue
;end
continue:
..one printed_flag
..hex2ascii ascii, hex
..print ascii
;end
ascii:
..vec 8
end:
}
Depends onΒΆ
β Previous: bit.print_hex_uint
Next: bit.print_hex_int β