hex/math_basic.fjΒΆ
βββ- Basic Mathmatics:
MacrosΒΆ
hexΒΆ
hex.add_count_bitsβ (n=2when operating on 16-255bit-numbers)hex.count_bitsβ x is hex.vec n, and dst is hex.vec small_n.hex.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]