Skip to content

Commit

Permalink
Merge pull request #25619 from charris/backport-25613
Browse files Browse the repository at this point in the history
BLD: fix building for windows ARM64
  • Loading branch information
charris committed Jan 18, 2024
2 parents f03488c + e7f6ac3 commit 623a403
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions numpy/core/src/common/npy_cpu_features.c
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@ npy__cpu_init_features(void)

/***************** ARM ******************/

#elif defined(__arm__) || defined(__aarch64__)
#elif defined(__arm__) || defined(__aarch64__) || defined(_M_ARM64)

static inline void
npy__cpu_init_features_arm8(void)
Expand Down Expand Up @@ -781,7 +781,7 @@ npy__cpu_init_features(void)
return;
#endif
// We have nothing else todo
#if defined(NPY_HAVE_ASIMD) || defined(__aarch64__) || (defined(__ARM_ARCH) && __ARM_ARCH >= 8)
#if defined(NPY_HAVE_ASIMD) || defined(__aarch64__) || (defined(__ARM_ARCH) && __ARM_ARCH >= 8) || defined(_M_ARM64)
#if defined(NPY_HAVE_FPHP) || defined(__ARM_FEATURE_FP16_VECTOR_ARITHMETIC)
npy__cpu_have[NPY_CPU_FEATURE_FPHP] = 1;
#endif
Expand Down

0 comments on commit 623a403

Please sign in to comment.