diff options
author | Henrik Gramner <gramner@twoorioles.com> | 2019-05-09 22:46:51 +0300 |
---|---|---|
committer | Henrik Gramner <henrik@gramner.com> | 2019-05-10 00:35:04 +0300 |
commit | b37f87df78571df7bdc79a1cf207c00dc720f97c (patch) | |
tree | e0acc3bede36b6453ef77833de4d606945250fad | |
parent | 8d2dd439005f72e2f73fc6155f0c2245cbf3227f (diff) |
build: Group asm files per instruction set
The asm object files are linked in the order they are listed, and
avoiding interleaving often-used code with never-used code has a
minor positive effect on cache/TLB hit rate.
-rw-r--r-- | src/meson.build | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/src/meson.build b/src/meson.build index 2487197..a2baedb 100644 --- a/src/meson.build +++ b/src/meson.build @@ -28,43 +28,43 @@ # libdav1d source files libdav1d_sources = files( - 'picture.c', + 'cdf.c', 'cpu.c', 'data.c', - 'ref.c', - 'log.c', - 'getbits.c', - 'obu.c', 'decode.c', - 'cdf.c', - 'msac.c', - 'tables.c', - 'scan.c', 'dequant_tables.c', + 'getbits.c', 'intra_edge.c', 'lf_mask.c', + 'log.c', + 'msac.c', + 'obu.c', + 'picture.c', + 'qm.c', + 'ref.c', 'ref_mvs.c', + 'scan.c', + 'tables.c', 'warpmv.c', 'wedge.c', - 'qm.c', ) # libdav1d bitdepth source files # These files are compiled for each bitdepth with # `BITDEPTH` defined to the currently built bitdepth. libdav1d_tmpl_sources = files( + 'cdef_apply_tmpl.c', + 'cdef_tmpl.c', + 'film_grain_tmpl.c', 'ipred_prepare_tmpl.c', 'ipred_tmpl.c', 'itx_tmpl.c', 'lf_apply_tmpl.c', 'loopfilter_tmpl.c', - 'mc_tmpl.c', - 'cdef_apply_tmpl.c', - 'cdef_tmpl.c', - 'lr_apply_tmpl.c', 'looprestoration_tmpl.c', + 'lr_apply_tmpl.c', + 'mc_tmpl.c', 'recon_tmpl.c', - 'film_grain_tmpl.c', ) # libdav1d entrypoint source files @@ -128,15 +128,15 @@ if is_asm_enabled if dav1d_bitdepths.contains('8') libdav1d_sources_asm += files( 'x86/cdef.asm', - 'x86/cdef_sse.asm', 'x86/ipred.asm', - 'x86/ipred_ssse3.asm', 'x86/itx.asm', - 'x86/itx_ssse3.asm', 'x86/loopfilter.asm', 'x86/looprestoration.asm', - 'x86/looprestoration_ssse3.asm', 'x86/mc.asm', + 'x86/cdef_sse.asm', + 'x86/ipred_ssse3.asm', + 'x86/itx_ssse3.asm', + 'x86/looprestoration_ssse3.asm', 'x86/mc_ssse3.asm', ) endif |