lzx_compress.c: optimize bit output