From 8d3112e24f93053bf8cd92ca5aa54d2f55339821 Mon Sep 17 00:00:00 2001 From: Kugel Fuhr <98353208+kugelfuhr@users.noreply.github.com> Date: Tue, 1 Jul 2025 08:47:16 +0200 Subject: [PATCH] Small code simplification. --- src/common/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/cpu.c b/src/common/cpu.c index d8c0dbd37..2f239d99d 100644 --- a/src/common/cpu.c +++ b/src/common/cpu.c @@ -233,5 +233,5 @@ int CPUHasCap (capability_t Cap) /* Check if the current CPU has the given capability */ { PRECONDITION (CPU >= 0 && CPU < CPU_COUNT); - return (CPUCaps[CPU] & (UINT32_C (1) << Cap)) != 0; + return (CPUCaps[CPU] & CAP_BIT (Cap)) != 0; }