[PATCH 2/6] make acc happy
authorA. Maitland Bottoms <bottoms@debian.org>
Wed, 28 Mar 2018 02:02:59 +0000 (22:02 -0400)
committerA. Maitland Bottoms <bottoms@debian.org>
Mon, 24 Feb 2020 23:08:05 +0000 (23:08 +0000)
The abi-compliance-checker grabs all the .h files it finds
and tries to compile them all. Even though some are not
appropriate for the architecture being run on. Being careful
with preprocessor protections avoids problems.

Gbp-Pq: Name make-acc-happy

include/volk/volk_neon_intrinsics.h
kernels/volk/volk_32f_8u_polarbutterflypuppet_32f.h
kernels/volk/volk_8u_x2_encodeframepolar_8u.h

index 90e7b5402dca14e7fffe3ead845034a83c6c03f4..607a4f01d9079ad69697a86d7d29f3a362b23820 100644 (file)
@@ -79,6 +79,7 @@
 
 #ifndef INCLUDE_VOLK_VOLK_NEON_INTRINSICS_H_
 #define INCLUDE_VOLK_VOLK_NEON_INTRINSICS_H_
+#ifdef LV_HAVE_NEON
 #include <arm_neon.h>
 
 
@@ -275,4 +276,5 @@ static inline float32x4_t _vtanq_f32(float32x4_t x) {
 }
 
 
+#endif /*LV_HAVE_NEON*/
 #endif /* INCLUDE_VOLK_VOLK_NEON_INTRINSICS_H_ */
index fa40a86877050a9f681181fdc3c17a1d284ba28b..9534913c2583a4415e6c10eca976ffa06bb84211 100644 (file)
@@ -31,6 +31,7 @@
 #include <volk/volk_32f_8u_polarbutterfly_32f.h>
 #include <volk/volk_8u_x3_encodepolar_8u_x2.h>
 #include <volk/volk_8u_x3_encodepolarpuppet_8u.h>
+#include <volk/volk_8u_x2_encodeframepolar_8u.h>
 
 
 static inline void
index bc176ec800fbbd597802b787faef921cdcef5e50..92353bd39c53b9c57c7a000463722477e2ef5c47 100644 (file)
@@ -58,8 +58,6 @@ encodepolar_single_stage(unsigned char* frame_ptr, const unsigned char* temp_ptr
   }
 }
 
-#ifdef LV_HAVE_GENERIC
-
 static inline void
 volk_8u_x2_encodeframepolar_8u_generic(unsigned char* frame, unsigned char* temp,
                                        unsigned int frame_size)
@@ -79,7 +77,6 @@ volk_8u_x2_encodeframepolar_8u_generic(unsigned char* frame, unsigned char* temp
     --stage;
   }
 }
-#endif /* LV_HAVE_GENERIC */
 
 #ifdef LV_HAVE_SSSE3
 #include <tmmintrin.h>