aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/mips/lsp_mips.h
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-09-25 16:22:21 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-09-29 00:05:32 +0200
commitc35a6709d077c3221f50235446c88d7c96234d5b (patch)
treebbd029dbd310f515de1189fa136ba344fcc45331 /libavcodec/mips/lsp_mips.h
parente0980629d8ef1970488eaaaa56a55e198d5549d4 (diff)
downloadffmpeg-c35a6709d077c3221f50235446c88d7c96234d5b.tar.gz
avcodec/lsp: Make ff_lsp2polyf() static
Possible since 48ac225db2563fe534b1d9e999bf8e70d5a577f8. Furthermore, the current code would not work on mips in case ff_lsp2polyf() were used outside of lsp.c, because it is not compiled on mips since commit 3827a86eacd04d9d7b356f769be553f7b8cca361 at all; instead it is overridden with a static av_always_inline function which only works for the callers in lsp.c. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/mips/lsp_mips.h')
-rw-r--r--libavcodec/mips/lsp_mips.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/libavcodec/mips/lsp_mips.h b/libavcodec/mips/lsp_mips.h
index c69f8b770c..2d67403888 100644
--- a/libavcodec/mips/lsp_mips.h
+++ b/libavcodec/mips/lsp_mips.h
@@ -61,7 +61,7 @@
#include "libavutil/attributes.h"
#include "libavutil/mips/asmdefs.h"
-static av_always_inline void ff_lsp2polyf_mips(const double *lsp, double *f, int lp_half_order)
+static av_always_inline void lsp2polyf_mips(const double *lsp, double *f, int lp_half_order)
{
int i, j = 0;
double * p_fi = f;
@@ -88,8 +88,8 @@ static av_always_inline void ff_lsp2polyf_mips(const double *lsp, double *f, int
"addiu %[j], %[i], -2 \n\t"
"ldc1 %[f_j_2], -8(%[p_f]) \n\t"
"sdc1 %[tmp], 16(%[p_f]) \n\t"
- "beqz %[j], ff_lsp2polyf_lp_j_end%= \n\t"
- "ff_lsp2polyf_lp_j%=: \n\t"
+ "beqz %[j], lsp2polyf_lp_j_end%= \n\t"
+ "lsp2polyf_lp_j%=: \n\t"
"add.d %[tmp], %[f_j], %[f_j_2] \n\t"
"madd.d %[tmp], %[tmp], %[f_j_1], %[val] \n\t"
"mov.d %[f_j], %[f_j_1] \n\t"
@@ -98,8 +98,8 @@ static av_always_inline void ff_lsp2polyf_mips(const double *lsp, double *f, int
"ldc1 %[f_j_2], -16(%[p_f]) \n\t"
"sdc1 %[tmp], 8(%[p_f]) \n\t"
PTR_ADDIU "%[p_f], -8 \n\t"
- "bgtz %[j], ff_lsp2polyf_lp_j%= \n\t"
- "ff_lsp2polyf_lp_j_end%=: \n\t"
+ "bgtz %[j], lsp2polyf_lp_j%= \n\t"
+ "lsp2polyf_lp_j_end%=: \n\t"
: [f_j_2]"=&f"(f_j_2), [f_j_1]"=&f"(f_j_1), [val]"+f"(val),
[tmp]"=&f"(tmp), [f_j]"=&f"(f_j), [p_f]"+r"(p_f),
@@ -110,7 +110,7 @@ static av_always_inline void ff_lsp2polyf_mips(const double *lsp, double *f, int
f[1] += val;
}
}
-#define ff_lsp2polyf ff_lsp2polyf_mips
+#define lsp2polyf lsp2polyf_mips
#endif /* !HAVE_MIPS32R6 && !HAVE_MIPS64R6 */
#endif /* HAVE_MIPSFPU && HAVE_INLINE_ASM */
#endif /* AVCODEC_MIPS_LSP_MIPS_H */