diff options
author | Henrik Gramner <gramner@twoorioles.com> | 2020-06-11 15:08:45 +0300 |
---|---|---|
committer | Henrik Gramner <gramner@twoorioles.com> | 2020-06-11 19:26:14 +0300 |
commit | d606dd2465d099b5986755b49af0c92ec4b3122f (patch) | |
tree | 0bc5e1709c08f45e6b77340ca4ca8aed50d81ba5 /tests | |
parent | bc008834b9e9d08f86d18227ca05a251492a0617 (diff) |
Remove redundant memset in itx DSP initialization
The struct is already zero-initialized when the function is called
except for the checkasm test, so move the zeroing there instead.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/checkasm/itx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/checkasm/itx.c b/tests/checkasm/itx.c index 1ef0cbc..01f5e05 100644 --- a/tests/checkasm/itx.c +++ b/tests/checkasm/itx.c @@ -232,6 +232,7 @@ void bitfn(checkasm_check_itx)(void) { ALIGN_STK_64(coef, coeff, 2, [32 * 32]); ALIGN_STK_64(pixel, c_dst, 64 * 64,); ALIGN_STK_64(pixel, a_dst, 64 * 64,); + Dav1dInvTxfmDSPContext c = { { { 0 } } }; /* Zero unused function pointer elements. */ static const uint8_t txfm_size_order[N_RECT_TX_SIZES] = { TX_4X4, RTX_4X8, RTX_4X16, @@ -254,7 +255,6 @@ void bitfn(checkasm_check_itx)(void) { dav1d_txfm_dimensions[tx].lh)]; for (int bpc = bpc_min; bpc <= bpc_max; bpc += 2) { - Dav1dInvTxfmDSPContext c; bitfn(dav1d_itx_dsp_init)(&c, bpc); for (enum TxfmType txtp = 0; txtp < N_TX_TYPES_PLUS_LL; txtp++) for (int subsh = 0; subsh < subsh_max; subsh++) |