Skip to content

In bitstream.h:bs_write* replace lookup table with x264_log2_u8, minor related changes

Replace lookup table with x264_log2_u8, which uses x264_clz(), gives 0.5% improvement on modern aarch64/x86_64. Also WORD_SIZE is not runtime dependent, change to compiler define SIZEOF_POINTER and remove the branches where it's used.

Merge request reports

Loading