diff --git a/include/qoixx.hpp b/include/qoixx.hpp index 8f17fbe..ea24d3e 100644 --- a/include/qoixx.hpp +++ b/include/qoixx.hpp @@ -17,7 +17,7 @@ #if defined(__ARM_FEATURE_SVE) #include #include -#elif defined(__ARM_NEON) +#elif defined(__aarch64__) #include #elif defined(__AVX2__) #include @@ -589,7 +589,7 @@ class qoi{ push(p_, padding); } -#elif defined(__ARM_NEON) +#elif defined(__aarch64__) template using pixels_type = std::conditional_t; template @@ -1155,7 +1155,7 @@ class qoi{ const auto b1 = p.pull(); --size; -#if defined(__ARM_NEON) and not defined(QOIXX_NO_SIMD) +#if defined(__aarch64__) and not defined(QOIXX_NO_SIMD) #define QOIXX_HPP_DECODE_RUN(px, run) { \ if constexpr(Pusher::is_contiguous){ \ ++run; \ @@ -1335,7 +1335,7 @@ class qoi{ #undef QOIXX_HPP_SVE_REGISTER_SIZE_SWITCH_CASE #undef QOIXX_HPP_SVE_REGISTER_SIZE_SWITCH else -#elif defined(__ARM_NEON) +#elif defined(__aarch64__) if constexpr(coT::pusher::is_contiguous && coU::puller::is_contiguous) if(desc.channels == 4) encode_neon<4>(p, puller, desc);