cosmos
cosmos copied to clipboard
Add an algorithm that multiplies using only bitwise operators
Changes:
Below is my code for multiplying two integers of any integer type (from char to long long, signed and unsigned) using ONLY bitwise operators. As you can see, I have included exhaustive testing using assert. Change anything you see fit!