tools/utils/generators/deflate_generator/huff_codes.cpp
// bit reverse low order LENGTH bits in code, and return result in low order bits
bit reverse low order LENGTH bits in code, and return result in low order bits
bit reverse low order LENGTH bits in code and return result in low order bits
uint32_t bit_reverse(uint32_t code, uint32_t length)
    {
        code = (bit_rev_8[code & 0x00FFu] << BYTE) | (bit_rev_8[code >> BYTE]);
        return (code >> (WORD - length));
    }
uint32_t bit_reverse ( uint32_t code , uint32_t length ) { code = ( bit_rev_8 [ code & 0x00FFu ] << BYTE ) | ( bit_rev_8 [ code >> BYTE ] ) ; return ( code >> ( WORD - length ) ) ; }
bit reverse low order LENGTH bits in code, and return result in low order bits
bit reverse low order LENGTH bits in code and return result in low order bits