oscbyspro / Ultimathnum

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

Rework lsb/msb stuff #30

Closed oscbyspro closed 1 week ago

oscbyspro commented 2 weeks ago

Before

  1. All binary integers can return Self/leastSignificantBit.
  2. All systems integers can return Self.lsb.
  3. All systems integers can return Self.msb.

After

  1. All binary integers can return Self/lsb.
  2. All binary integers can return Self/msb.
  3. All binary integers can return Self.lsb.
  4. All systems integers can return Self.msb.
oscbyspro commented 2 weeks ago

BinaryInteger/msb of an arbitrary integer equals the appendix because the log2(max+1)-1 index is still infinite.