bit.print_hex_int

print x[:n] as a signed hexadecimal number, without leading zeros (digits & capital-letters).

x_prefix (constant): print with the “0x” prefix.

@Assumes n can be divided by 4.

Signature

def print_hex_int n, x, x_prefix @ do_print { ... }

Defined in bit/output.fj — lines 116–122 (view on GitHub).

Complexity

  • Time: n(7@+13)

  • Space: n(7@+13)

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

Depends on