bit.neg¶
x[:n] = -x[:n]
Signature¶
def neg n, x { ... }
Defined in bit/math.fj — lines 57–60 (view on GitHub).
Complexity¶
Time:
n + 5@+12Space:
n(2@+6)
See the complexity glossary for what @, w, dw, dbit, n mean.
Source¶
Click to view the macro body
def neg n, x {
.not n, x
.inc n, x
}
Depends on¶
Used by¶
Example uses¶
bit.print_hex_intinbit/output.fjbit.print_dec_intinbit/output.fjbit.idivinbit/div.fj