3 ms·
If you do it in binary you only need addition. 12 × 34 = 0xC x 0x22 = 1100 x 100010 Only two 1's! 1100 add 5 zeroes + 1100 add one zero = 110011000 = 408 ta
by 6510 2mo ago
If you do it in binary you only need addition.
12 × 34 = 0xC x 0x22 = 1100 x 100010
Only two 1's!
1100 add 5 zeroes + 1100 add one zero = 110011000 = 408
ta-daa!
- cvoss 2mo agoAddition and conditional bit shifting (which is multiplication by powers of 2).