Mjolnir Core
Core functionality of the Mjolnir API
x86.h
Go to the documentation of this file.
1 
7 
8 #pragma once
9 
10 #if defined __GNUC__ && __GNUC__ >= 6
11 # pragma GCC diagnostic ignored "-Wignored-attributes"
12 #endif
13 
14 
15 // see https://stackoverflow.com/a/22291538/6700329
16 #if defined(_MSC_VER)
17 # include <intrin.h>
18 #elif defined(__GNUC__) && (defined(__x86_64__) || defined(__i386__))
19 # include <x86intrin.h>
20 #else
21 static_assert(false, "Incompatible processor architecture or compiler");
22 #endif