aboutsummaryrefslogtreecommitdiffstats
path: root/tests/ref/vsynth/vsynth3-dnxhd-hr-lb-mov
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-06-22 03:52:53 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2023-09-10 23:21:05 +0200
commitb0fb8e82dde375efb8d5602f6cd479f210c1e93c (patch)
treeebf9db5e8ca0691688da2559fb6b6c512823b827 /tests/ref/vsynth/vsynth3-dnxhd-hr-lb-mov
parent2a68d945cd74265bb71c3d38b7a2e7f7d7e87be5 (diff)
downloadffmpeg-b0fb8e82dde375efb8d5602f6cd479f210c1e93c.tar.gz
avcodec/get_bits: Avoid reading multiple times in get_bits_long
Due to non-byte-alignment a read of 32 bits guarantees only 25 usable bits; therefore get_bits_long() (which is used to potentially read more than 25 bits) performs two reads in case it needs to read more than 25 bits and combines the result. Yet this is not necessary: One can just read 64 bits at a time to get 32 usable bits (57 would be possible). This commit does so. This reduced the size of .text by 30144B for GCC 11.4 and 5648B for Clang 14 (both with -O3). (get_bits_long() is a building block of show_bits_long() and get_ue_golomb_long(), so this patch affects these, too.) Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'tests/ref/vsynth/vsynth3-dnxhd-hr-lb-mov')
0 files changed, 0 insertions, 0 deletions