Skip to content
Snippets Groups Projects
Commit 78ce568e authored by Ronald S. Bultje's avatar Ronald S. Bultje Committed by Martin Storsjö
Browse files

sparc: hpeldsp: Move vis half-pel assembly from dsputil to hpeldsp

parent 278bd205
No related branches found
No related tags found
No related merge requests found
...@@ -62,6 +62,8 @@ av_cold void ff_hpeldsp_init(HpelDSPContext *c, int flags) ...@@ -62,6 +62,8 @@ av_cold void ff_hpeldsp_init(HpelDSPContext *c, int flags)
ff_hpeldsp_init_ppc(c, flags); ff_hpeldsp_init_ppc(c, flags);
if (ARCH_SH4) if (ARCH_SH4)
ff_hpeldsp_init_sh4(c, flags); ff_hpeldsp_init_sh4(c, flags);
if (HAVE_VIS)
ff_hpeldsp_init_vis(c, flags);
if (ARCH_X86) if (ARCH_X86)
ff_hpeldsp_init_x86(c, flags); ff_hpeldsp_init_x86(c, flags);
} }
...@@ -98,6 +98,7 @@ void ff_hpeldsp_init_arm(HpelDSPContext *c, int flags); ...@@ -98,6 +98,7 @@ void ff_hpeldsp_init_arm(HpelDSPContext *c, int flags);
void ff_hpeldsp_init_bfin(HpelDSPContext *c, int flags); void ff_hpeldsp_init_bfin(HpelDSPContext *c, int flags);
void ff_hpeldsp_init_ppc(HpelDSPContext *c, int flags); void ff_hpeldsp_init_ppc(HpelDSPContext *c, int flags);
void ff_hpeldsp_init_sh4(HpelDSPContext *c, int flags); void ff_hpeldsp_init_sh4(HpelDSPContext *c, int flags);
void ff_hpeldsp_init_vis(HpelDSPContext *c, int flags);
void ff_hpeldsp_init_x86(HpelDSPContext *c, int flags); void ff_hpeldsp_init_x86(HpelDSPContext *c, int flags);
#endif /* AVCODEC_HPELDSP_H */ #endif /* AVCODEC_HPELDSP_H */
VIS-OBJS += sparc/dsputil_vis.o \ VIS-OBJS += sparc/dsputil_vis.o \
sparc/simple_idct_vis.o \ sparc/simple_idct_vis.o \
VIS-OBJS-$(CONFIG_HPELDSP) += sparc/hpeldsp_vis.o
This diff is collapsed.
This diff is collapsed.
...@@ -42,6 +42,17 @@ ...@@ -42,6 +42,17 @@
#ifndef AVCODEC_SPARC_VIS_H #ifndef AVCODEC_SPARC_VIS_H
#define AVCODEC_SPARC_VIS_H #define AVCODEC_SPARC_VIS_H
#define ACCEL_SPARC_VIS 1
#define ACCEL_SPARC_VIS2 2
static inline int vis_level(void)
{
int accel = 0;
accel |= ACCEL_SPARC_VIS;
accel |= ACCEL_SPARC_VIS2;
return accel;
}
#define vis_opc_base ((0x1 << 31) | (0x36 << 19)) #define vis_opc_base ((0x1 << 31) | (0x36 << 19))
#define vis_opf(X) ((X) << 5) #define vis_opf(X) ((X) << 5)
#define vis_sreg(X) (X) #define vis_sreg(X) (X)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment