[PATCH v2] sbc: improve compatibility with ARM Cortex-M

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Specifically test the compiler for the feature required to use the
smuad/smlad instructions when determining if we can build with ARMV6
primitive support rather than guessing based on thumb version.
__ARM_FEATURE_SIMD32 is defined in section 9.5.1 of the "ARM C
Language Extensions 2.1" specification published by ARM.
---
 sbc/sbc_primitives_armv6.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sbc/sbc_primitives_armv6.h b/sbc/sbc_primitives_armv6.h
index 6a9efe5..4a9b53d 100644
--- a/sbc/sbc_primitives_armv6.h
+++ b/sbc/sbc_primitives_armv6.h
@@ -41,7 +41,7 @@
 #if !defined(SBC_HIGH_PRECISION) && (SCALE_OUT_BITS == 15) && \
  defined(__GNUC__) && defined(SBC_HAVE_ARMV6) && \
  defined(__ARM_EABI__) && !defined(__ARM_NEON__) && \
- (!defined(__thumb__) || defined(__thumb2__))
+ defined(__ARM_FEATURE_SIMD32)

 #define SBC_BUILD_WITH_ARMV6_SUPPORT

-- 
2.15.1.windows.2
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux