1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
Description: More precise checking of vector extensions
Author: Nicholas Guriev <guriev-ns@ya.ru>
Last-Update: Wed, 06 Nov 2024 19:31:23 +0300
--- a/src/system_wrappers/source/denormal_disabler.cc
+++ b/src/system_wrappers/source/denormal_disabler.cc
@@ -15,12 +15,12 @@
namespace webrtc {
namespace {
-#if defined(WEBRTC_ARCH_X86_FAMILY) && defined(__clang__)
+#if defined(WEBRTC_ARCH_X86_FAMILY) && defined(__SSE__)
#define WEBRTC_DENORMAL_DISABLER_X86_SUPPORTED
#endif
#if defined(WEBRTC_DENORMAL_DISABLER_X86_SUPPORTED) || \
- (defined(WEBRTC_ARCH_ARM_FAMILY) && !defined(_MSC_VER))
+ defined(WEBRTC_ARCH_ARM_FAMILY) && !defined(_MSC_VER) && defined(__VFP_FP__) && !defined(__SOFTFP__)
#define WEBRTC_DENORMAL_DISABLER_SUPPORTED
#endif
|