Bit Reverse
0x12 => 0x48 이것이 Bit Reverse 00010010 => 01001000 - unsigned char 일 때는 lookup table 로 만들어 두고 - 규칙성을 활용하여 recursive 형식으로 풀이함 #include typedef unsigned char u8; typedef unsigned short u16; typedef unsigned int u32; const u8 byte_rev_table[256] = { 0x00, 0x80, 0x40, 0xc0, 0x20, 0xa0, 0x60, 0xe0, 0x10, 0x90, 0x50, 0xd0, 0x30, 0xb0, 0x70, 0xf0, 0x08, 0x88, 0x48, 0xc8, 0x28, 0xa8, 0x68, 0xe8, 0x18, 0x..
2021. 4. 13.