[FFmpeg-devel] [PATCH v2] x86/tx_float: Fix building for platforms with a symbol prefix

Martin Storsjö martin at martin.st
Tue Sep 6 16:42:38 EEST 2022


This fixes building for x86 macOS (both i386 and x86_64) and
i386 windows.
---
v2: Add mangle() in a couple more places, that weren't noticed
on i386 windows.
---
 libavutil/x86/tx_float.asm | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/libavutil/x86/tx_float.asm b/libavutil/x86/tx_float.asm
index 1b9131e7fa..69f67720c1 100644
--- a/libavutil/x86/tx_float.asm
+++ b/libavutil/x86/tx_float.asm
@@ -744,7 +744,7 @@ cglobal fft8_float, 4, 4, 6, ctx, out, in, tmp
 
 %if %1
 cglobal fft8_ns_float, 4, 4, 6, ctx, out, in, tmp
-    call ff_tx_fft8_asm_float_sse3
+    call mangle(ff_tx_fft8_asm_float_sse3)
     RET
 %endif
 %endmacro
@@ -784,7 +784,7 @@ cglobal fft8_float, 4, 4, 4, ctx, out, in, tmp
 
 %if %1
 cglobal fft8_ns_float, 4, 4, 4, ctx, out, in, tmp
-    call ff_tx_fft8_asm_float_avx
+    call mangle(ff_tx_fft8_asm_float_avx)
     RET
 %endif
 %endmacro
@@ -833,7 +833,7 @@ cglobal fft16_float, 4, 4, 8, ctx, out, in, tmp
 
 %if %2
 cglobal fft16_ns_float, 4, 4, 8, ctx, out, in, tmp
-    call ff_tx_fft16_asm_float_ %+ %1
+    call mangle(ff_tx_fft16_asm_float_ %+ %1)
     RET
 %endif
 %endmacro
@@ -917,7 +917,7 @@ cglobal fft32_float, 4, 4, 16, ctx, out, in, tmp
 
 %if %2
 cglobal fft32_ns_float, 4, 4, 16, ctx, out, in, tmp
-    call ff_tx_fft32_asm_float_ %+ %1
+    call mangle(ff_tx_fft32_asm_float_ %+ %1)
     RET
 %endif
 %endmacro
@@ -1342,7 +1342,7 @@ cglobal fft_sr_ns_float, 4, 9, 16, 272, ctx, out, in, tmp, len, lut, itab, rtab,
     mov lutq, [ctxq + AVTXContext.map]
     mov tgtq, lenq
 
-    call ff_tx_fft_sr_asm_float_ %+ %1
+    call mangle(ff_tx_fft_sr_asm_float_ %+ %1)
     RET
 %endif
 %endmacro
-- 
2.32.1 (Apple Git-133)



More information about the ffmpeg-devel mailing list