File: Better-denormal-check.patch

package info (click to toggle)
libtgowt 0~git20251117.d067233%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 65,996 kB
  • sloc: cpp: 801,658; ansic: 38,900; java: 22,924; python: 6,378; objc: 3,683; sh: 370; javascript: 269; asm: 236; xml: 68; makefile: 45
file content (21 lines) | stat: -rw-r--r-- 760 bytes parent folder | download
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