#3722: Disable GZIP in native compress library (no longer requires PCLMUL)

This commit is contained in:
lax1dude
2024-08-09 19:07:38 +10:00
committed by md_5
parent 6b612302e1
commit cd56fb32c2
3 changed files with 4 additions and 7 deletions

View File

@@ -1,4 +1,4 @@
// Header to check for SSE 4.2 support in compression natives
// Header to check for SSE 2, SSSE 3, and SSE 4.2 support in compression natives
// GCC only!
#ifndef _INCLUDE_CPUID_HELPER_H
@@ -8,12 +8,9 @@
#include <cpuid.h>
static inline bool checkCompressionNativesSupport() {
unsigned int eax;
unsigned int ebx;
unsigned int ecx;
unsigned int edx;
unsigned int eax, ebx, ecx, edx;
if(__get_cpuid(1, &eax, &ebx, &ecx, &edx)) {
return (ecx & bit_PCLMUL) != 0 && (ecx & bit_SSE4_2) != 0;
return (edx & bit_SSE2) != 0 && (ecx & bit_SSSE3) != 0 && (ecx & bit_SSE4_2) != 0;
}else {
return false;
}