xls
xls copied to clipboard
dslx/stdlib: add iterative_div_mod
- add
iterative_div_modbased on https://github.com/google/xls/blob/fa7af6cbda69d02d2d50b28fa5d95f51fe8cdfb1/xls/ir/abstract_evaluator.h#L513-L581 - unify implementation with existing
iterative_divfunction
@meheff fyi
PTAL, unified the DSLX stdlib division with the existing IR divmod implementation.
Rebased.
PTAL
I think this need a rebase to merge, thanks.
Nevermind previous comments, we can fix them up after landing this. (Just noticed how long this was sitting, and that I'd already approved it ages ago.)