mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-18 07:18:34 +00:00
[libyuv] Fix build with GCC
HammingDistance_AVX512VNNI clobbers k1 but lacks the LIBYUV_TARGET_AVX512VNNI attribute that its siblings use, so GCC on x86_64 fails with "the register 'k1' cannot be clobbered in 'asm' for the current target". ARGBAlphaBlendRow_SVE_SC uses "mov z25.s, #0x01010101", which the GNU assembler rejects as an invalid replicated MOV immediate. Use the equivalent "mov z25.b, #1", which sets the same value and is accepted by both GNU as and LLVM.
This commit is contained in:
1 parent
13fd84b33c
commit
7f73f94c15
2 files changed
+2
-1
No files matched your search
@@ -458,6 +458,7 @@ uint32_t HammingDistance_AVX512BW(const uint8_t* src_a,
|
||||
#ifdef HAS_HAMMINGDISTANCE_AVX512VNNI
|
||||
// Process 64 bytes per loop and the remainder of 1 to 63 bytes with masked
|
||||
// loads that read zeros, accumulating byte popcounts with vpdpbusd.
|
||||
LIBYUV_TARGET_AVX512VNNI
|
||||
uint32_t HammingDistance_AVX512VNNI(const uint8_t* src_a,
|
||||
const uint8_t* src_b,
|
||||
int count) {
|
||||
|
||||
Reference in new issue
Block a user