mirror of
https://codeberg.org/virtualxt/virtualxt.git
synced 2026-10-19 14:04:45 +00:00
cord8/cord16 unified into one CORD_DEFINE X-macro template with two instantiations; the rewrite also eliminates the do-nothing else branches and redundant temporaries from the CORD loops. negate8/negate16 unified into cord_negate() (width-mask parameterized); POSTIDIV factored into v20_divide_error_flags() and postidiv_fix_signs(). The four DIV/IDIV exec handlers are generated from EXEC_DIV_DEFINE/EXEC_IDIV_DEFINE templates. Magic cycle costs (80/101/144/165) are named constants. div.c: 477 -> 291 lines. Verified flag- and cycle-exact against all 635 MOO test files (8088 + V20).