3 ms·
I wonder why he implemented a | b as (a & b) - ((a ^ b ^ -1) + 1) instead of (a & b) ^ a ^ b which seems much easier.
by danbruc 10y ago
I wonder why he implemented a | b as (a & b) - ((a ^ b ^ -1) + 1) instead of (a & b) ^ a ^ b which seems much easier.
- infogulch 10y agoHe acknowledged this in the comments and said that he didn't notice! But also that using add demonstrated the point he was making much better: decompose an inaccessible desired instruction into a longer series of accessible instructions. I agree.