Oscar Byström Ericsson
Oscar Byström Ericsson
Hm. I've had a hard time getting this to perform well with NBKDoubleWidth (shifts). It appears that NBKStrictBitPattern\ is slow. I'm not sure why. I got close with NBKStrictBitPattern\, however,...
I'm basically hoping I can turn these into views when Swift gets those, that would be great. Maybe I should still go the custom-NBKDoubleWidth-pointer route until then, because the need...
So I realized something. Given how binary integers are tree-like, I could wrap sub-views in super-views. Maybe the compiler likes that better than converting back and forth between views? Conversions...
Free functions are hard to beat. Should I use static methods and retry when Swift gets proper views? Hm.
I kept the namespaces but removed the views. I feel like the namespaces help keep things nice and tidy.