Skip to content

Commit 25020f2

Browse files
committed
fast_math.hpp: Use __asm__ rather than asm; fixes including with -std=c99
1 parent fa7e7e0 commit 25020f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/core/include/opencv2/core/fast_math.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
int res; \
8181
float temp; \
8282
(void)temp; \
83-
asm(_asm_string : [res] "=r" (res), [temp] "=w" (temp) : [value] "w" (_value)); \
83+
__asm__(_asm_string : [res] "=r" (res), [temp] "=w" (temp) : [value] "w" (_value)); \
8484
return res
8585
// 2. version for double
8686
#ifdef __clang__

0 commit comments

Comments
 (0)