]> granicus.if.org Git - python/commit
k_mul(): The fix for (ah+al)*(bh+bl) spilling 1 bit beyond the allocated
authorTim Peters <tim.peters@gmail.com>
Tue, 13 Aug 2002 20:37:51 +0000 (20:37 +0000)
committerTim Peters <tim.peters@gmail.com>
Tue, 13 Aug 2002 20:37:51 +0000 (20:37 +0000)
commitd6974a54ab5ab929ac84047691bdc94f95bef27c
tree2c2b4270c542507e932056a5968cb1d2ee5ec41e
parent259b1e18b4b5f8acca8366efa3a06e7d489d1045
k_mul():  The fix for (ah+al)*(bh+bl) spilling 1 bit beyond the allocated
space is no longer needed, so removed the code.  It was only possible when
a degenerate (ah->ob_size == 0) split happened, but after that fix went
in I added k_lopsided_mul(), which saves the body of k_mul() from seeing
a degenerate split.  So this removes code, and adds a honking long comment
block explaining why spilling out of bounds isn't possible anymore.  Note:
ff we end up spilling out of bounds anyway <wink>, an assert in v_iadd()
is certain to trigger.
Objects/longobject.c