mirror of
https://github.com/opencv/opencv.git
synced 2024-11-24 19:20:28 +08:00
fast_math.hpp: Use __asm__ rather than asm; fixes including with -std=c99
This commit is contained in:
parent
fa7e7e0ff9
commit
25020f2672
@ -80,7 +80,7 @@
|
|||||||
int res; \
|
int res; \
|
||||||
float temp; \
|
float temp; \
|
||||||
(void)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
|
return res
|
||||||
// 2. version for double
|
// 2. version for double
|
||||||
#ifdef __clang__
|
#ifdef __clang__
|
||||||
|
Loading…
Reference in New Issue
Block a user