From 0467d5c698204126b0bdfc373f61bb6418577dc4 Mon Sep 17 00:00:00 2001 From: contextswap Date: Thu, 4 May 2023 05:17:29 +0900 Subject: [PATCH] more booleans Signed-off-by: contextswap --- libi2pd/CPU.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libi2pd/CPU.cpp b/libi2pd/CPU.cpp index 637e80cf..57d86daf 100644 --- a/libi2pd/CPU.cpp +++ b/libi2pd/CPU.cpp @@ -54,10 +54,10 @@ namespace cpu // much less hardware revisions than x86, and a binary compiled // on a newer Elbrus CPU will outright not work on a older model anyway. #ifdef __AES__ - aesni = true; + if (AesSwitch) aesni = true; #endif #ifdef __AVX__ - avx = true; + if (AvxSwitch) avx = true; #endif #endif