diff --git a/tensorflow_lite_support/scann_ondevice/cc/core/index_table_sum.h b/tensorflow_lite_support/scann_ondevice/cc/core/index_table_sum.h index a9e41a36e..83cdb02af 100644 --- a/tensorflow_lite_support/scann_ondevice/cc/core/index_table_sum.h +++ b/tensorflow_lite_support/scann_ondevice/cc/core/index_table_sum.h @@ -195,7 +195,7 @@ void IndexTableSum(const uint8_t* indices, size_t num_chunks, indices, num_chunks, num_outputs, lookup_table, batch_size, num_centers, min, max, i, output); #endif -#ifdef __ARM_NEON__ +#ifdef __ARM_NEON i = IndexTableSumSimdBatch( indices, num_chunks, num_outputs, lookup_table, batch_size, num_centers, min, max, i, output); @@ -222,7 +222,7 @@ inline void IndexTableSum(const uint8_t* indices, size_t num_chunks, indices, num_chunks, num_outputs, lookup_table, batch_size, num_centers, min, max, i, output); #endif -#ifdef __ARM_NEON__ +#ifdef __ARM_NEON i = IndexTableSumSimdBatch( indices, num_chunks, num_outputs, lookup_table, batch_size, num_centers, min, max, i, output); diff --git a/tensorflow_lite_support/scann_ondevice/cc/core/searcher_test.cc b/tensorflow_lite_support/scann_ondevice/cc/core/searcher_test.cc index 023002778..867587077 100644 --- a/tensorflow_lite_support/scann_ondevice/cc/core/searcher_test.cc +++ b/tensorflow_lite_support/scann_ondevice/cc/core/searcher_test.cc @@ -362,7 +362,7 @@ TEST_P(SearcherTest, AsymmetricHashNonSimd) { EXPECT_NEAR(5.79, extracted[2].first, kEps); } -#if defined(__ARM_NEON__) || defined(__SSE__) +#if defined(__ARM_NEON) || defined(__SSE__) TEST_P(SearcherTest, AsymmetricHashSimdFloat32x4) { MatrixXf query(5, 6); query << 0, 0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 1, 0, 0, 1, 1, 0, 1, 0, 1, 0, @@ -414,7 +414,7 @@ TEST_P(SearcherTest, AsymmetricHashSimdFloat32x4) { } #endif -#if defined(__ARM_NEON__) || defined(__SSE__) +#if defined(__ARM_NEON) || defined(__SSE__) TEST_P(SearcherTest, AsymmetricHashSimdInt16x8) { MatrixXf query(5, 11); query << 0, 0, 1, 0, 1, 1, 0, 0, 0, 0, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0, 1, 0, 0, @@ -496,7 +496,7 @@ TEST_P(SearcherTest, AsymmetricHashSimdInt16x8) { } #endif -#if defined(__ARM_NEON__) || defined(__SSE__) +#if defined(__ARM_NEON) || defined(__SSE__) TEST_P(SearcherTest, AsymmetricHashMiniBatchedSimdFail) { std::shared_ptr database(new Matrix8u(2, 9)); *database << 0, 0, 0, 1, 1, 1, 2, 2, 2, 0, 1, 2, 0, 1, 2, 0, 1, 2; diff --git a/tensorflow_lite_support/scann_ondevice/cc/core/simd_utils.h b/tensorflow_lite_support/scann_ondevice/cc/core/simd_utils.h index f239ec482..5ed036f35 100644 --- a/tensorflow_lite_support/scann_ondevice/cc/core/simd_utils.h +++ b/tensorflow_lite_support/scann_ondevice/cc/core/simd_utils.h @@ -20,7 +20,7 @@ limitations under the License. #ifdef __SSE__ #include #endif -#ifdef __ARM_NEON__ +#ifdef __ARM_NEON #include #endif @@ -101,7 +101,7 @@ class SimdFloat32x8 { } }; #endif -#ifdef __ARM_NEON__ +#ifdef __ARM_NEON class SimdFloat32x4 { float32x4_t value_; @@ -198,7 +198,7 @@ class SimdInt16x8 { } }; #endif -#ifdef __ARM_NEON__ +#ifdef __ARM_NEON class SimdInt16x8 { uint16x8_t value_;