Quantcast
Channel: Arbitrary large unsigned integers - Code Review Stack Exchange
Viewing all articles
Browse latest Browse all 3

Answer by vnp for Arbitrary large unsigned integers

$
0
0
  • Multiplication cries for optimization (e.g. Karatzuba or Toom-Cook)

  • Division also can be optimized; given a fast multiplication a most straightforward approach is Newton-Raphson.

  • The semantics of hugeint_sub and hugeint_decrement is questionable, or, if I may say so, surprising.

  • hugeint_ladd_cutoverflow assumes that the carry fits in an unsigned int. It is not necessarily a case.

  • I don't think it is a good idea to interpret a position being NULL as an implicit shift by 1.


Viewing all articles
Browse latest Browse all 3

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>