diff options
author | Niklas Haas <[email protected]> | 2025-09-15 17:20:17 +0200 |
---|---|---|
committer | Niklas Haas <[email protected]> | 2025-09-21 11:02:41 +0000 |
commit | 4c067d0778c932ab85f35cc4c07ace9d612e1905 (patch) | |
tree | 816d71c604912d1442ed0e28d1fa621108bc4b42 | |
parent | 00e05bcd681a21637b1eed4cd13ff3797d9df97a (diff) |
avfilter/x86/vf_idetdsp: generalize 8-bit macro
This is mostly compatible with AVX as well, so turn it into a macro.
-rw-r--r-- | libavfilter/x86/vf_idetdsp.asm | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libavfilter/x86/vf_idetdsp.asm b/libavfilter/x86/vf_idetdsp.asm index 7bc8e7d2c4..63d9f4533d 100644 --- a/libavfilter/x86/vf_idetdsp.asm +++ b/libavfilter/x86/vf_idetdsp.asm @@ -78,7 +78,7 @@ IDET_FILTER_LINE_16BIT 8 ;****************************************************************************** ; SSE2 8-bit implementation that does 16-bytes at a time: -INIT_XMM sse2 +%macro IDET_FILTER_LINE 0 cglobal idet_filter_line, 4, 6, 7, a, b, c, width, index, total xor indexq, indexq pxor m0, m0 @@ -92,7 +92,7 @@ cglobal idet_filter_line, 4, 6, 7, a, b, c, width, index, total psubusb m5, m2, m3 ; ba movu m3, [cq + indexq*1] ; C - add indexq, 0x10 + add indexq, mmsize psubusb m4, m2 ; ab CMP indexd, widthd @@ -110,3 +110,7 @@ cglobal idet_filter_line, 4, 6, 7, a, b, c, width, index, total paddq m0, m1 movd eax, m0 RET +%endmacro + +INIT_XMM sse2 +IDET_FILTER_LINE |