3 ms·
I have found many thing like this, and have thought of how some of these things might be done with MMIX too. With MMIX, you could for example to use 2ADDU and 4
by zzo38computer 9y ago
I have found many thing like this, and have thought of how some of these things might be done with MMIX too. With MMIX, you could for example to use 2ADDU and 4ADDU to multiply by fifteen or by twelve, etc. Reversing bits (in this case, of a 64-bit number) is also simple in MMIX:
MOR $0,#0102040810204080,$0
MOR $0,$0,#0102040810204080
(Although that constant will be placed in a register, but you can use the same constant twice.)