File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
substratevm/src/com.oracle.svm.native.libchelper/src Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 28
28
#include <stdint.h>
29
29
#include <string.h>
30
30
31
+ #if defined(_MSC_VER ) && !defined(__clang__ )
32
+ #define NO_INLINE __declspec(noinline)
33
+ #else
34
+ #define NO_INLINE __attribute__((noinline))
35
+ #endif
36
+
31
37
#ifndef _WIN64
32
38
#include <alloca.h>
33
39
#else
42
48
#ifndef _WIN64
43
49
#include <cpuid.h>
44
50
45
- #if defined(_MSC_VER ) && !defined(__clang__ )
46
- #define NO_INLINE __declspec(noinline)
47
- #else
48
- #define NO_INLINE __attribute__((noinline))
49
- #endif
50
-
51
51
static void read_xem_xcr0 (uint32_t * eax , uint32_t * edx ) {
52
52
__asm__ __volatile__("xgetbv" : "=a" (* eax ), "=d" (* edx ) : "c" (0 ));
53
53
}
@@ -388,7 +388,7 @@ static void initialize_cpuinfo(CpuidInfo *_cpuid_info)
388
388
}
389
389
390
390
// ported from from vm_version_x86.cpp::feature_flags
391
- static void NO_INLINE set_cpufeatures (CPUFeatures * features , CpuidInfo * _cpuid_info )
391
+ NO_INLINE static void set_cpufeatures (CPUFeatures * features , CpuidInfo * _cpuid_info )
392
392
{
393
393
if (_cpuid_info -> std_cpuid1_edx .bits .cmpxchg8 != 0 )
394
394
features -> fCX8 = 1 ;
You can’t perform that action at this time.
0 commit comments