3 ms·
Could you do it with shifts and increments? Constant loads would look just like multiplies, a glorious RISC apotheosis..
by andrewf 4y ago
Could you do it with shifts and increments? Constant loads would look just like multiplies, a glorious RISC apotheosis..
- kps 4y agoYes, you could get 0 by subtracting (or xoring) a register with itself, then -1 by complementing, then 1 by negating, then adding to itself to get any single bit. Then synthesize any constant by adding those. The code would be impractically slow and large, though.