Skip to content
  1. Nov 29, 2000
  2. Nov 28, 2000
  3. Nov 27, 2000
  4. Nov 26, 2000
  5. Nov 22, 2000
  6. Nov 21, 2000
  7. Nov 20, 2000
  8. Nov 19, 2000
  9. Nov 18, 2000
    • Richard Levitte's avatar
      Remove two bn_wexpand() from BN_mul(), which is a step toward getting · baa257f1
      Richard Levitte authored
      BN_mul() correctly constified, avoids two realloc()'s that aren't
      really necessary and saves memory to boot.  This required a small
      change in bn_mul_part_recursive() and the addition of variants of
      bn_cmp_words(), bn_add_words() and bn_sub_words() that can take arrays
      with differing sizes.
      
      The test results show a performance that very closely matches the
      original code from before my constification.  This may seem like a
      very small win from a performance point of view, but if one remembers
      that the variants of bn_cmp_words(), bn_add_words() and bn_sub_words()
      are not at all optimized for the moment (and there's no corresponding
      assembler code), and that their use may be just as non-optimal, I'm
      pretty confident there are possibilities...
      
      This code needs reviewing!
      baa257f1