// SPDX-FileCopyrightText: 2026 JC-Lab <joseph@jc-lab.net>
//
// SPDX-License-Identifier: Apache-2.0
//! CPU feature detection shared by the kernel driver and the UEFI loader.
/// Returns true if the CPU advertises AES-NI (CPUID.01H:ECX.AESNI[bit 25]).
///
/// This is the same hardware bit the `aes` crate's runtime detection uses to
/// select its AES-NI backend; we query it independently only to log support
/// status at startup.
/// Non-x86 fallback: no AES-NI.