From c5633a32c548168007769e262e724e004e749a00 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Sat, 2 Feb 2019 16:37:46 +1100 Subject: [PATCH] cpuid: move specifics into a directory --- CMakeLists.txt | 4 ++-- cpuid.hpp | 2 +- cpuid_x86.cpp => cpuid/x86.cpp | 2 +- cpuid_x86.hpp => cpuid/x86.hpp | 0 4 files changed, 4 insertions(+), 4 deletions(-) rename cpuid_x86.cpp => cpuid/x86.cpp (99%) rename cpuid_x86.hpp => cpuid/x86.hpp (100%) diff --git a/CMakeLists.txt b/CMakeLists.txt index bac59674..72770bb7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -190,8 +190,8 @@ endif () if (host_cpu STREQUAL "x86_64") list (APPEND UTIL_FILES - cpuid_x86.cpp - cpuid_x86.hpp + cpuid/x86.cpp + cpuid/x86.hpp ) else () message (FATAL_ERROR "Unknown architecture ${host_cpu}") diff --git a/cpuid.hpp b/cpuid.hpp index 69037327..fbd67510 100644 --- a/cpuid.hpp +++ b/cpuid.hpp @@ -27,7 +27,7 @@ namespace cruft::cpu { }; #if defined(PROCESSOR_AMD64) -#include "cpuid_x86.hpp" +#include "cpuid/x86.hpp" #else #error "Unhandled architecture" #endif diff --git a/cpuid_x86.cpp b/cpuid/x86.cpp similarity index 99% rename from cpuid_x86.cpp rename to cpuid/x86.cpp index 9a3e12ae..f59f919f 100644 --- a/cpuid_x86.cpp +++ b/cpuid/x86.cpp @@ -6,7 +6,7 @@ * Copyright 2018 Danny Robson */ -#include "cpuid_x86.hpp" +#include "x86.hpp" #include "endian.hpp" #include "view.hpp" diff --git a/cpuid_x86.hpp b/cpuid/x86.hpp similarity index 100% rename from cpuid_x86.hpp rename to cpuid/x86.hpp