|
|
|
|
|
by Double_a_92
3146 days ago
|
|
Could you explain it to us? Thx. 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.