Skip to content

Commit

Permalink
build: Fix broken OIIO_NO_NEON definition (AcademySoftwareFoundation#…
Browse files Browse the repository at this point in the history
…3911)

Clean up the `#if` tests that disable Intel SIMD when not on Intel
architectures, which incorrectly disabled ARM NEON when on ARM.

Fixes AcademySoftwareFoundation#3909

Signed-off-by: Larry Gritz <[email protected]>
  • Loading branch information
lgritz committed Jul 17, 2023
1 parent 5ca4b06 commit f8f342f
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 @@ -94,6 +94,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 f8f342f

Please sign in to comment.