AaronKutch / awint

Arbitrary width integers
Other
10 stars 0 forks source link

Implement `Awi` #24

Closed AaronKutch closed 11 months ago

AaronKutch commented 1 year ago

For the smallvec analogue of arbitrary width integers, I realized that we should probably handle Ext/Int multiplexing and unused capacity in the same type since we are already taking some branching hits, and expandable bigint functionality can be added on through this: &Self functions

AaronKutch commented 11 months ago

The Awi in version v0.13 isn't exactly a smallvec because it only inlines up to BITS, but it handles the vast majority of cases and has a bunch of nice properties