摘要: 1 // Reverse the bit order in a 32-bit word. 2 unsigned int rbit( 3 unsigned int i ) 4 { 5 i = ( ( i & 0x55555555 ) << 1 ) | ( ( i >> 1 ) & 0x55555555 ); 6 i = ( ( i & 0x33333333 ) << 2 ) | ( ( i >> 2 ) & 0x33333333 ); 7 i = ( ( i & 0x0f0f0f0f ) << 4 阅读全文
posted @ 2013-01-05 20:06 IAmAProgrammer 阅读(864) 评论(0) 推荐(0) 编辑