stl.outputΒΆ
str is a constant. The macro outputs the bytes of it (from lsB to msB) until it becomes all zeros.
SignatureΒΆ
def output str { ... }
Defined in runlib.fj β lines 165β167 (view on GitHub).
ComplexityΒΆ
Time:
8 * string_lengthSpace:
8 * string_length
See the complexity glossary for what @, w, dw, dbit, n mean.
SourceΒΆ
Click to view the macro body
def output str {
rep(((#str)+7)>>3, i) .output_char (str>>(8*i))&0xff
}
Used byΒΆ
Example usesΒΆ
bit.print_hex_uintinbit/output.fjbit.print_hex_intinbit/output.fjbit.print_dec_intinbit/output.fj
β Previous: stl.output_char