by Double_a_92 · 9y ago · 0 comments
I know how bitwise operators works and have a CS degree... But even with googling I couldn't find a straight forward way to implement a general exponential operator using only bit operations.
Then, you need to code a multiply(x, y) method using some more bit shifting cleverness and your new add method.
Then, do repeated squaring using your new multiply method.