Skip to content

Commit

Permalink
x86: Add pal_idx_finish asm
Browse files Browse the repository at this point in the history
  • Loading branch information
gramner-twoorioles authored and Frank Bossen committed Apr 21, 2024
1 parent c784968 commit b87600a
Show file tree
Hide file tree
Showing 4 changed files with 704 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ if is_asm_enabled
libdav1d_sources_asm = files(
'x86/cpuid.asm',
'x86/msac.asm',
'x86/pal.asm',
'x86/refmvs.asm',
'x86/itx_avx512.asm',
'x86/cdef_avx2.asm',
Expand Down
12 changes: 12 additions & 0 deletions src/pal.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,18 @@ static void pal_idx_finish_c(uint8_t *dst, const uint8_t *src,
}
}

#if HAVE_ASM
#if ARCH_X86
#include "src/x86/pal.h"
#endif
#endif

COLD void dav1d_pal_dsp_init(Dav1dPalDSPContext *const c) {
c->pal_idx_finish = pal_idx_finish_c;

#if HAVE_ASM
#if ARCH_X86
pal_dsp_init_x86(c);
#endif
#endif
}
Loading

0 comments on commit b87600a

Please sign in to comment.