|
|
|
@ -26,6 +26,7 @@ |
|
|
|
|
|
|
|
|
|
void ff_vector_clipf_rvf(float *dst, const float *src, int len, float min, float max); |
|
|
|
|
|
|
|
|
|
int32_t ff_scalarproduct_int16_rvv(const int16_t *v1, const int16_t *v2, int len); |
|
|
|
|
void ff_vector_clip_int32_rvv(int32_t *dst, const int32_t *src, int32_t min, |
|
|
|
|
int32_t max, unsigned int len); |
|
|
|
|
void ff_vector_clipf_rvv(float *dst, const float *src, int len, float min, float max); |
|
|
|
@ -37,8 +38,10 @@ av_cold void ff_audiodsp_init_riscv(AudioDSPContext *c) |
|
|
|
|
if (flags & AV_CPU_FLAG_RVF) |
|
|
|
|
c->vector_clipf = ff_vector_clipf_rvf; |
|
|
|
|
#if HAVE_RVV |
|
|
|
|
if (flags & AV_CPU_FLAG_RVV_I32) |
|
|
|
|
if (flags & AV_CPU_FLAG_RVV_I32) { |
|
|
|
|
c->scalarproduct_int16 = ff_scalarproduct_int16_rvv; |
|
|
|
|
c->vector_clip_int32 = ff_vector_clip_int32_rvv; |
|
|
|
|
} |
|
|
|
|
if (flags & AV_CPU_FLAG_RVV_F32) |
|
|
|
|
c->vector_clipf = ff_vector_clipf_rvv; |
|
|
|
|
#endif |
|
|
|
|