1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2025-04-07 11:17:01 +00:00

Use __VOLK_ASM and __VOLK_VOLATILE keywords

This commit is contained in:
Carles Fernandez 2017-10-13 11:32:00 +02:00
parent c94a0dcd61
commit 0be23787d7

View File

@ -42,7 +42,7 @@ struct VOLK_CPU volk_gnsssdr_cpu;
#if ((__GNUC__ > 4 || __GNUC__ == 4 && __GNUC_MINOR__ >= 2) || (__clang_major__ >= 3)) && defined(HAVE_XGETBV)
static inline unsigned long long _xgetbv(unsigned int index){
unsigned int eax, edx;
__asm__ __volatile__("xgetbv" : "=a"(eax), "=d"(edx) : "c"(index));
__VOLK_ASM __VOLK_VOLATILE ("xgetbv" : "=a"(eax), "=d"(edx) : "c"(index));
return ((unsigned long long)edx << 32) | eax;
}
#define __xgetbv() _xgetbv(0)