好像有错

来源: 2007-12-21 02:14:13 [博客] [旧帖] [给我悄悄话] 本文已被阅读:

int i=0;
while( (n & 0x1)) {n >>= 1;i++;}
n ^= 0x1;
n