Oscar Byström Ericsson

Results 75 comments of Oscar Byström Ericsson

![1337-day-streak](https://github.com/user-attachments/assets/68095858-ce33-4210-9298-50ea108c4489)

![1440-day-streak](https://github.com/user-attachments/assets/ae88e892-e3d1-4e7a-afd3-6bc81097c43b)

All of the time is spend calling `__udivmodti4`, according to Instruments. So, basically, `UInt.dividingFullWidth(_:)` is slow as snails on iOS 15. Is my interpretation correct? And, if so, why? It...

It seems everything is slower on Xcode 14.2 (iPhone 14 Pro), but not as slow as above.

Those were interesting reads. Thanks! I appreciate that you found the source of the problem. Since it has been solved, in a way, I suppose I'll close this issue when...

I've pondered normalization behaviors for a bit, and I wonder if there's merit in a dynamically-fixed-width type. This hypothetical integer type would be given a size at initialization, then behave...

2's complement or sign(um)-magnitude, that is the question :thought_balloon:

I'm inclined to go with sign-magnitude because then I can leverage the magnitude. I wonder whether I should go sign or signum, however. Integer solutions become infinitely less elegant once...

One nice thing about allowing both positive and negative zero, however, is that you can manipulate the sign and magnitude independently; there's one less invariant to maintain.

On a side note: I believe a two's complement in-memory solution is easier to implement because the as-if-two's-complement behavior is the biggest headache by far. I'm just not convinced I...