Commit d643ab0d authored by steinbac's avatar steinbac

removed unneeded include

parent 104131ff
......@@ -6,7 +6,6 @@
#define COMPASS_RT_X86_GNU_CPUID_H_
#include "detail/tags.hpp"
#include "detail/definitions.hpp"
//#include "detail/rt/x86/cpuid_common.hpp"
......
......@@ -11,7 +11,6 @@
#include <bitset>
#include <cstdint>
#include "detail/tags.hpp"
#include "detail/definitions.hpp"
namespace compass {
......
......@@ -5,7 +5,6 @@
#ifdef COMPASS_CT_COMP_CLANG
#include "detail/tags.hpp"
#include "detail/definitions.hpp"
#include <array>
......
......@@ -12,8 +12,6 @@
#include <bitset>
#include <cstdint>
#include "detail/tags.hpp"
#include "detail/definitions.hpp"
namespace compass {
......@@ -26,17 +24,17 @@ namespace compass {
std::uint32_t in_ebx = 0,
std::uint32_t in_ecx = 0,
std::uint32_t in_edx = 0) {
std::array<std::uint32_t, 4> regs = { in_eax,in_ebx,in_ecx,in_edx };
std::int32_t* regs_ptr = reinterpret_cast<std::int32_t*>(regs.data());
std::array<std::uint32_t, 4> regs = { in_eax,in_ebx,in_ecx,in_edx };
std::int32_t* regs_ptr = reinterpret_cast<std::int32_t*>(regs.data());
__cpuidex(regs_ptr,
(std::int32_t)in_eax,
(std::int32_t)in_ecx
);
(std::int32_t)in_eax,
(std::int32_t)in_ecx
);
return regs;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment