diff options
author | Niklas Haas <git@haasn.dev> | 2021-05-22 21:03:52 +0200 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2021-05-26 17:35:55 +0200 |
commit | ec0006bfa1aaf608a7141929f2871c89ac7a15d6 (patch) | |
tree | 68d27f8e5c0d4f3357a6275d3fbe07b966b4b788 /wscript | |
parent | 353cccfa8cc4aa86f502a751c2441ab68737341c (diff) | |
download | mpv-ec0006bfa1aaf608a7141929f2871c89ac7a15d6.tar.bz2 mpv-ec0006bfa1aaf608a7141929f2871c89ac7a15d6.tar.xz |
af_scaletempo2: use gcc vectors to speed up inner loop
This brings my scaletempo2 benchmark down from ~22s to ~7s on my machine
(-march=native), and down to ~11s with a generic compile.
Guarded behind an appropriate #ifdef to avoid being ableist against
people who have the clinical need to run obscure platforms.
Closes #8848
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -117,6 +117,10 @@ build_options = [ 'default': 'enable', 'func': check_true, }, { + 'name': '--vector', + 'desc': 'GCC vector instructions', + 'func': check_statement([], 'float v __attribute__((vector_size(32)))'), + }, { 'name': '--clang-database', 'desc': 'generate a clang compilation database', 'func': check_true, |