8#include <botan/internal/cpuid.h>
12uint32_t CPUID::CPUID_Data::detect_cpu_features(uint32_t allowed) {
15 enum class Wasm_vmcap_bit : uint64_t {
16 SIMD128_bit = (1 << 0),
20#ifdef __wasm_simd128__
21 flags |=
static_cast<std::underlying_type_t<Wasm_vmcap_bit>
>(Wasm_vmcap_bit::SIMD128_bit);
25 feat |=
if_set(flags, Wasm_vmcap_bit::SIMD128_bit, CPUFeature::Bit::SIMD128, allowed);
static uint32_t if_set(uint64_t cpuid, T flag, CPUID::Feature bit, uint32_t allowed)