I am working through a problem which i was able to solve, all but for the last piece - i am not sure how can one do multiplication using bitwise operators:
0
I have just realized that this is the same answer as the previous one. LOL sorry.
public static uint Multiply(uint a, uint b) { uint c = 0; while(b > 0) { c += ((b & 1) > 0) ? a : 0; a <<= 1; b >>= 1; } return c; }