From 9eef2558905988129641c68a14fdd05d6e97ade6 Mon Sep 17 00:00:00 2001 From: Johnny Shaw Date: Sun, 15 Sep 2024 15:36:05 -0600 Subject: [PATCH] phintrin correct availability checks --- phlib/include/phintrin.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/phlib/include/phintrin.h b/phlib/include/phintrin.h index 1c21db8045c9..0420b8516060 100644 --- a/phlib/include/phintrin.h +++ b/phlib/include/phintrin.h @@ -40,14 +40,14 @@ extern long __isa_enabled; #ifdef _M_IX86 #define PhHasIntrinsics \ - FlagOn(__isa_enabled, ISA_ENABLED_SSE2) + (__isa_available >= ISA_AVAILABLE_SSE2) #else #define PhHasIntrinsics TRUE #endif #define PhHasPopulationCount \ - FlagOn(__isa_enabled, ISA_ENABLED_SSE42) + (__isa_available >= ISA_AVAILABLE_SSE42) #define PhHasAVX \ - FlagOn(__isa_enabled, ISA_ENABLED_AVX2) + (__isa_available >= ISA_AVAILABLE_AVX2) #endif FORCEINLINE