Static functions for APInt

This adds a bunch of static functions that implement unsigned
two's complement bignum arithmetic. They could be used to
implement much of APInt, but the idea is they are enough to
implement APFloat as well, which the current APInt interface
is not suited for.

Neil.

diff (19.5 KB)

Neil Booth wrote:-

This adds a bunch of static functions that implement unsigned
two's complement bignum arithmetic. They could be used to
implement much of APInt, but the idea is they are enough to
implement APFloat as well, which the current APInt interface
is not suited for.

Attached patch fixes a comment typo and renames a function
consistently.

Neil.

diff (19.5 KB)