xref: /OK3568_Linux_fs/yocto/meta-clang/recipes-multimedia/ffmpeg/ffmpeg/clang_mips64.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1Disable fpu using code when using clang/mips64 combo
2it works around clang's inline asm error
3
4error: couldn't allocate output register for constraint 'r'
5
6Upstream-Status: Pending
7Signed-off-by: Khem Raj <raj.khem@gmail.com>
8
9--- a/libavcodec/mips/aacdec_mips.c
10+++ b/libavcodec/mips/aacdec_mips.c
11@@ -282,7 +282,7 @@ static void apply_ltp_mips(AACContext *a
12     }
13 }
14
15-#if HAVE_MIPSFPU
16+#if HAVE_MIPSFPU && !defined(__clang__)
17 static av_always_inline void fmul_and_reverse(float *dst, const float *src0, const float *src1, int count)
18 {
19     /* Multiply 'count' floats in src0 by src1 and store the results in dst in reverse */
20@@ -435,7 +435,7 @@ void ff_aacdec_init_mips(AACContext *c)
21 #if HAVE_INLINE_ASM
22     c->imdct_and_windowing         = imdct_and_windowing_mips;
23     c->apply_ltp                   = apply_ltp_mips;
24-#if HAVE_MIPSFPU
25+#if HAVE_MIPSFPU && !defined(__clang__)
26     c->update_ltp                  = update_ltp_mips;
27 #endif /* HAVE_MIPSFPU */
28 #endif /* HAVE_INLINE_ASM */
29