File: fix_VFP_asm.patch

package info (click to toggle)
opencv 3.2.0%2Bdfsg-6
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 238,480 kB
  • sloc: xml: 901,650; cpp: 703,419; lisp: 20,142; java: 17,843; python: 17,641; ansic: 603; cs: 601; sh: 516; perl: 494; makefile: 117
file content (16 lines) | stat: -rw-r--r-- 727 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: fix compilation failure of this header in arm (where VFP is enabled)
Author: James Clarke <jrtc27@jrtc27.com>
Forwarded: https://github.com/opencv/opencv/pull/8976
Applied-Upstream: https://github.com/opencv/opencv/commit/25020f267236ab8e715fabbbdea5b81e39a01120

--- a/modules/core/include/opencv2/core/fast_math.hpp
+++ b/modules/core/include/opencv2/core/fast_math.hpp
@@ -72,7 +72,7 @@
         int res; \
         float temp; \
         (void)temp; \
-        asm(_asm_string : [res] "=r" (res), [temp] "=w" (temp) : [value] "w" (_value)); \
+        __asm__(_asm_string : [res] "=r" (res), [temp] "=w" (temp) : [value] "w" (_value)); \
         return res
     // 2. version for double
     #ifdef __clang__