answersLogoWhite

0

out = in+in; /* 2x */

out += out; /* 4x */

out += out; /* 8x */

out -= in; /* 7x */

or out = (in<<3) - in; /* 8x - x */

User Avatar

Wiki User

16y ago

What else can I help you with?