So...I know how to do your basic + operator, but I was wondering if anyone knew of a way to do it without using a loop?
Like...can you do it using a formula?
If you know how many times you need to run the loop, and how many times you are going to manipulate the bits through the algorithm, could you write it as a formula rather than an algorithm? I thought the entire point of an algorithm was to work with unknown variable numbers, where formulas used constant data? I don't know if I'm making sense...
But yeah...what's the most efficient way to recreate the + operator that you know? (preferably using only bitwise operators)