Hamish Ivey-Law 6a7728798b
Fix negative quotient issue (#1140)
* First draft.

* Separate out mulmod constraint poly from the rest.

* Offset quot limbs when doing SUB* operations.

* Refactor constr_poly calculation.

* Clippy.

* Constrain the hi part of quot to be 0 or 1 for SUB* ops.

* Simplify storage and handling of negative quotient limbs.

* Remove unnecessary constant; move another to main file.

* Move constant back; cast properly.
2023-07-21 20:59:27 +10:00
..
2022-10-14 18:09:43 -07:00
2023-07-21 20:59:27 +10:00