From baac70439133193731178e3e0dd31d38e2895d84 Mon Sep 17 00:00:00 2001 From: Cyan Ogilvie Date: Tue, 14 Apr 2026 07:45:41 -0300 Subject: [PATCH] Fix s_pclmul_is_supported() cache flag on MSVC Move initialized=1 out of the #else branch so that on MSVC it doesn't call __cpuid every time. --- src/encauth/gcm/gcm_gf_mult.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/encauth/gcm/gcm_gf_mult.c b/src/encauth/gcm/gcm_gf_mult.c index 48970b4f3..0b7a1c83c 100644 --- a/src/encauth/gcm/gcm_gf_mult.c +++ b/src/encauth/gcm/gcm_gf_mult.c @@ -38,8 +38,8 @@ static LTC_INLINE int s_pclmul_is_supported(void) ); is_supported = ((c >> 1) & 1); - initialized = 1; #endif + initialized = 1; } return is_supported;