commit | 877a2126786bd2a8e5086fbddb05a593c40cbc51 | [log] [tgz] |
---|---|---|
author | Tim Peters <tim.peters@gmail.com> | Mon Aug 12 05:09:36 2002 +0000 |
committer | Tim Peters <tim.peters@gmail.com> | Mon Aug 12 05:09:36 2002 +0000 |
tree | 2e77f55720821225666dd16e268c7929a8161338 | |
parent | e343878eecf7d5a7d10703678883a5476bfec044 [diff] |
Introduced helper functions v_iadd and v_isub, for in-place digit-vector addition and subtraction. Reworked the tail end of k_mul() to use them. This saves oodles of one-shot longobject allocations (this is a triply- recursive routine, so saving one allocation in the body saves 3**n allocations at depth n; we actually save 2 allocations in the body).