hex/math_basic.fjΒΆ
βββ- Basic Mathmatics:
MacrosΒΆ
hexΒΆ
hex.add_count_bitsβ (n=2 when operating on 16-255 bit-numbers)hex.count_bitsβ dst[:small_n] = x[:n].#on-bitshex.inc1β hex++ (if overflows - jump to carry1; else jump to carry0)hex.incβ hex[:n]++hex.dec1β hexβ (if underflows - jump to borrow1; else jump to borrow0)hex.decβ hex[:n]βhex.negβ x[:n] = -x[:n]hex.sign_extendβ sign-extends hex[:signed_n] into hex[:full_n]