bit.dec¶
x[:n]--
x is a bit[:n]
Signature¶
def dec n, x { ... }
Defined in bit/math.fj — lines 47–51 (view on GitHub).
Complexity¶
Time:
2n + 5@+12Space:
n(2@+6)
See the complexity glossary for what @, w, dw, dbit, n mean.
Source¶
Click to view the macro body
def dec n, x {
.not n, x
.inc n, x
.not n, x
}
Depends on¶
Used by¶
Example uses¶
bit.hex2asciiinbit/casting.fjbit.ptr_decinbit/pointers.fj