ref: 6a6c3528925e623891c8404afdf43c0d63815709
parent: 631d7720fd5cb4c5072aec5270bb444b68b9e0f7
author: Henrik Gramner <[email protected]>
date: Sun May 10 11:13:37 EDT 2020
x86-64: Do msac refill before calling dav1d_msac_init_x86() Allows for constant propagation and tail call elimination in the msac initialization, which is performed in each tile.
--- a/src/msac.c
+++ b/src/msac.c
@@ -198,6 +198,7 @@
s->rng = 0x8000;
s->cnt = -15;
s->allow_update_cdf = !disable_cdf_update_flag;
+ ctx_refill(s);
#if ARCH_X86_64 && HAVE_ASM
s->symbol_adapt16 = dav1d_msac_decode_symbol_adapt_c;
@@ -204,6 +205,4 @@
dav1d_msac_init_x86(s);
#endif
-
- ctx_refill(s);
}