fast_math.hpp: Use __asm__ rather than asm; fixes including with -std=c99

pull/8976/head
James Clarke 8 years ago
parent fa7e7e0ff9
commit 25020f2672
  1. 2
      modules/core/include/opencv2/core/fast_math.hpp

@ -80,7 +80,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__

Loading…
Cancel
Save