Skip to content

Commit

Permalink
cpu: Clarify Windows static feature detection.
Browse files Browse the repository at this point in the history
  • Loading branch information
briansmith committed Oct 31, 2022
1 parent 3fe566e commit d1245ff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cpu/arm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ pub fn setup() {
#[cfg(all(target_os = "windows", target_arch = "aarch64"))]
pub fn setup() {
// We do not need to check for the presence of NEON, as Armv8-A always has it
let mut features = NEON.mask;
const _ASSERT_NEON_DETECTED: () = assert!((ARMCAP_STATIC & NEON.mask) == NEON.mask);
let mut features = ARMCAP_STATIC;

let result = unsafe {
winapi::um::processthreadsapi::IsProcessorFeaturePresent(
Expand Down

0 comments on commit d1245ff

Please sign in to comment.