Skip to content

Commit

Permalink
build: Fix broken OIIO_NO_NEON definition (#3911)
Browse files Browse the repository at this point in the history
Clean up the `#if` tests that disable Intel SIMD when not on Intel
architectures, which incorrectly disabled ARM NEON when on ARM.

Fixes #3909

Signed-off-by: Larry Gritz <[email protected]>
  • Loading branch information
lgritz committed Jul 17, 2023
1 parent b1f5265 commit 780fe68
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/include/OpenImageIO/simd.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@
# ifndef OIIO_NO_AVX2
# define OIIO_NO_AVX2 1
# endif
#endif

#if !(defined(_M_ARM64) || defined(__aarch64) || defined(__aarch64__)) || defined(__CUDA_ARCH__)
# ifndef OIIO_NO_NEON
# define OIIO_NO_NEON 1
# endif
Expand Down

0 comments on commit 780fe68

Please sign in to comment.