Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/videolan/dav1d.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorHenrik Gramner <gramner@twoorioles.com>2020-06-11 15:08:45 +0300
committerHenrik Gramner <gramner@twoorioles.com>2020-06-11 19:26:14 +0300
commitd606dd2465d099b5986755b49af0c92ec4b3122f (patch)
tree0bc5e1709c08f45e6b77340ca4ca8aed50d81ba5 /tests
parentbc008834b9e9d08f86d18227ca05a251492a0617 (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.c2
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++)