Ethiopian multiplication: Difference between revisions

Line 170:
void halve(int *x) { *x >>= 1; }
void doublit(int *x) { *x <<= 1; }
bool iseven(const int x) { return (x%2 & 1) ==> 0; }
 
int ethiopian(int plier,
Anonymous user