force the alternate crc32 function

This commit is contained in:
G.E. 2024-07-26 02:55:33 +03:00
parent d24a2a6bfb
commit bf14820ba1

View File

@ -31,7 +31,7 @@
#include "ue2common.h" #include "ue2common.h"
#include "util/arch.h" #include "util/arch.h"
#if !defined(HAVE_SSE42) #if (!defined(HAVE_SSE42)) || defined(VS_SIMDE_BACKEND)
/*** /***
*** What follows is derived from Intel's Slicing-by-8 CRC32 impl, which is BSD *** What follows is derived from Intel's Slicing-by-8 CRC32 impl, which is BSD
@ -586,7 +586,7 @@ u32 crc32c_sb8_64_bit(u32 running_crc, const unsigned char* p_buf,
// Externally visible function // Externally visible function
u32 Crc32c_ComputeBuf(u32 inCrc32, const void *buf, size_t bufLen) { u32 Crc32c_ComputeBuf(u32 inCrc32, const void *buf, size_t bufLen) {
#if defined(HAVE_SSE42) #if defined(HAVE_SSE42) && (!defined(VS_SIMDE_BACKEND))
u32 crc = crc32c_sse42(inCrc32, (const unsigned char *)buf, bufLen); u32 crc = crc32c_sse42(inCrc32, (const unsigned char *)buf, bufLen);
#else #else
u32 crc = crc32c_sb8_64_bit(inCrc32, (const unsigned char *)buf, bufLen); u32 crc = crc32c_sb8_64_bit(inCrc32, (const unsigned char *)buf, bufLen);