oscbyspro / Ultimathnum

Binary arithmetic reimagined in Swift
Apache License 2.0
4 stars 1 forks source link

New BitCountable protocol #40

Closed oscbyspro closed 3 days ago

oscbyspro commented 4 days ago

The new pointer-bit bit-counting approach (#31) (#33) unifies the bit-counting methods of binary integers and data integers. I have, therefore, written a common BitCountable protocol. I'm using it for testing purposes at the moment, but it might come in handy elsewhere too. It should allow me deduplicate the inverses, at least.

oscbyspro commented 4 days ago

I could make RootInt (Swift.StaticBigInt) bit-countable too. In case it matters.