aboutsummaryrefslogtreecommitdiffstats
path: root/tests/checkasm/checkasm.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2025-03-30 15:12:17 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2025-04-03 01:58:07 +0200
commit4aeaee1f4e9d3f8b4018c4ced47dbfd32b190e2e (patch)
treee7fd678fc7c670cb05d13891a75f1658a2c16e92 /tests/checkasm/checkasm.c
parent98c178837088aea01d0ee8409daf2128a3ef4e83 (diff)
downloadffmpeg-4aeaee1f4e9d3f8b4018c4ced47dbfd32b190e2e.tar.gz
avcodec/ffv1enc: replace the remaining log2() by magic
big secret, reading a float as the corresponding integer is a good approximation of log2() for numbers not too close to 1.0. At the same time it maintains strict monotonicity this reduces run time from 19sec to 17sec for the slowest of my testcases (with default remap_optimizer 3) Compression is about the same: -rw-r----- 1 michael michael 497603370 Mar 30 15:23 float-303503-fixed-40-optim-3-1log2F.nut -rw-r----- 1 michael michael 497603374 Mar 28 11:27 float-303503-fixed-40-optim-3b.nut -rw-r----- 1 michael michael 549938852 Mar 28 11:27 float-303503-float16-40-optim-3b.nut -rw-r----- 1 michael michael 549938857 Mar 30 15:23 float-303503-float16-40-optim-3-1log2F.nut -rw-r----- 1 michael michael 1150827841 Mar 28 11:28 float-303503-float-40-optim-3b.nut -rw-r----- 1 michael michael 1150832913 Mar 30 15:22 float-303503-float-40-optim-3ref-log2F2.nut Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'tests/checkasm/checkasm.c')
0 files changed, 0 insertions, 0 deletions