diff options
author | RĂ©mi Denis-Courmont <remi@remlab.net> | 2022-10-04 20:17:16 +0300 |
---|---|---|
committer | Lynne <dev@lynne.ee> | 2022-10-05 06:51:11 +0200 |
commit | 64ab5779547628b032a3b68713dddbeca0c0686f (patch) | |
tree | a4c76df2397efe4fa95b5d3ffe686e5cb0997c9f /libavcodec/alacdsp.c | |
parent | 23411e6dcd3e610ac59cf6967c89115bcccb8d2e (diff) | |
download | ffmpeg-64ab5779547628b032a3b68713dddbeca0c0686f.tar.gz |
lavc/alacdsp: RISC-V V decorrelate_stereo
To avoid data dependencies, this does the following unroll, which
requires one extra but probably free addition:
coeff = (b * left_weight) >> decorr_shift;
b += a;
a -= coeff;
b -= coeff;
swap(a, b);
Diffstat (limited to 'libavcodec/alacdsp.c')
-rw-r--r-- | libavcodec/alacdsp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/alacdsp.c b/libavcodec/alacdsp.c index b033a27970..a604566afb 100644 --- a/libavcodec/alacdsp.c +++ b/libavcodec/alacdsp.c @@ -58,7 +58,9 @@ av_cold void ff_alacdsp_init(ALACDSPContext *c) c->append_extra_bits[0] = c->append_extra_bits[1] = append_extra_bits; -#if ARCH_X86 +#if ARCH_RISCV + ff_alacdsp_init_riscv(c); +#elif ARCH_X86 ff_alacdsp_init_x86(c); #endif } |