bit.div10.cmp_sub_10¶

if (val > 10) {
val -= 10;
res  = !res;
}
for val4:val[3,2,1,0] of length 5, and Assumes val <= 19.
This macro is getting called on consecutive 5-bits, shifting the 5-bit-frame 1 bit right at a time.

Signature¶

def cmp_sub_10 val4, val, res @ yes, no, _1xxxx, _1xx0x, _1xx1x, _01x1x, _0110x { ... }

Defined in bit/div.fj — lines 20–45 (view on GitHub).

Complexity¶

  • Time: 4@+12

  • Space: 4@+12

See the complexity glossary for what @, w, dw, dbit, n mean.

Depends on¶

Used by¶