While Windows API offers the IsProcessorFeaturePresent API to check for various PF_ARM_XXX features, these only check presence of individual features.

Search code, repositories, users, issues, pull requests...

submited by
Style Pass
2024-11-23 19:30:02

While Windows API offers the IsProcessorFeaturePresent API to check for various PF_ARM_XXX features, these only check presence of individual features. That is good enough if you want to switch to hand-crafter intrinsics-using algorithm at runtime, but there's not direct match to ISA feature level used by MSVC. This repository attempts to bridge that gap.

The helper parses undocumented/unsupported registry entries in HARDWARE\\DESCRIPTION\\System\\CentralProcessor, matches them against documented mandatory features for those levels, optionally excluding features that are useless for user mode (applications), and returns determined ISA level.

Leave a Comment