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

This commit is contained in:
James Clarke 2017-06-23 15:28:09 +01:00
parent fa7e7e0ff9
commit 25020f2672

View File

@ -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__