1 2 3 4 5 6 7 8 9
void f1() { long bit=0, exponent; exponent = -exponent; for (bit = 1; exponent; bit <<= 1) if (exponent & bit) exponent ^= bit; }