// SPDX-FileCopyrightText: Copyright (c) 2022 merryhime // SPDX-License-Identifier: MIT #include #include #include "oaknut/feature_detection/feature_detection.hpp" using namespace oaknut; TEST_CASE("Print CPU features") { CpuFeatures features = detect_features(); std::fputs("CPU Features: ", stdout); #define OAKNUT_CPU_FEATURE(name) \ if (features.has(CpuFeature::name)) \ std::fputs(#name " ", stdout); #include "oaknut/impl/cpu_feature.inc.hpp" #undef OAKNUT_CPU_FEATURE std::fputs("\n", stdout); }