摘要: /* * 翻转一个整数的二进制数 */ #include <stdint.h> #include <stdio.h> uint32_t reverse_bits(uint32_t n) { // 交换相邻位 n = ((n & 0xAAAAAAAA) >> 1) | ((n & 0x55555555 阅读全文
posted @ 2024-07-04 20:38 歪币八卜 阅读(39) 评论(0) 推荐(1)