aboutsummaryrefslogtreecommitdiffstats
path: root/fftools/textformat/tw_stdout.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2025-04-07 12:51:54 -0300
committerJames Almer <jamrial@gmail.com>2025-04-10 12:02:34 -0300
commita039726c2a092c340e26b28fcc2bb3582be85d4f (patch)
tree4dd02d944598c49e0f357b3f6cb8dd2296a30d76 /fftools/textformat/tw_stdout.c
parent4d4b301e4a269adfabceaeca1a20c653bde47554 (diff)
downloadffmpeg-a039726c2a092c340e26b28fcc2bb3582be85d4f.tar.gz
avutil/x86/aes: remove a few branches
The rounds value is constant and can be one of three hardcoded values, so instead of checking it on every loop, just split the function into three different implementations for each value. Before: aes_decrypt_128_aesni: 93.8 (47.58x) aes_decrypt_192_aesni: 106.9 (49.30x) aes_decrypt_256_aesni: 109.8 (56.50x) aes_encrypt_128_aesni: 93.2 (47.70x) aes_encrypt_192_aesni: 111.1 (48.36x) aes_encrypt_256_aesni: 113.6 (56.27x) After: aes_decrypt_128_aesni: 71.5 (63.31x) aes_decrypt_192_aesni: 96.8 (55.64x) aes_decrypt_256_aesni: 106.1 (58.51x) aes_encrypt_128_aesni: 81.3 (55.92x) aes_encrypt_192_aesni: 91.2 (59.78x) aes_encrypt_256_aesni: 109.0 (58.26x) Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'fftools/textformat/tw_stdout.c')
0 files changed, 0 insertions, 0 deletions