diff --git a/include/cpu_features_macros.h b/include/cpu_features_macros.h index a8d4229..055a15e 100644 --- a/include/cpu_features_macros.h +++ b/include/cpu_features_macros.h @@ -12,8 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. -#ifndef THIRD_PARTY_CPU_FEATURES_INCLUDE_CPU_FEATURES_MACROS_H_ -#define THIRD_PARTY_CPU_FEATURES_INCLUDE_CPU_FEATURES_MACROS_H_ +#ifndef CPU_FEATURES_INCLUDE_CPU_FEATURES_MACROS_H_ +#define CPU_FEATURES_INCLUDE_CPU_FEATURES_MACROS_H_ //////////////////////////////////////////////////////////////////////////////// // Architectures @@ -118,4 +118,4 @@ #define CPU_FEATURES_COMPILED_MIPS_MSA defined(__mips_msa) #endif -#endif // THIRD_PARTY_CPU_FEATURES_INCLUDE_CPU_FEATURES_MACROS_H_ +#endif // CPU_FEATURES_INCLUDE_CPU_FEATURES_MACROS_H_ diff --git a/include/cpuinfo_aarch64.h b/include/cpuinfo_aarch64.h index 3948153..c9d87d7 100644 --- a/include/cpuinfo_aarch64.h +++ b/include/cpuinfo_aarch64.h @@ -12,8 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. -#ifndef THIRD_PARTY_CPU_FEATURES_INCLUDE_CPUINFO_AARCH64_H_ -#define THIRD_PARTY_CPU_FEATURES_INCLUDE_CPUINFO_AARCH64_H_ +#ifndef CPU_FEATURES_INCLUDE_CPUINFO_AARCH64_H_ +#define CPU_FEATURES_INCLUDE_CPUINFO_AARCH64_H_ #include "cpu_features_macros.h" @@ -62,4 +62,4 @@ const char* GetAarch64FeaturesEnumName(Aarch64FeaturesEnum); END_CPP_NAMESPACE -#endif // THIRD_PARTY_CPU_FEATURES_INCLUDE_CPUINFO_AARCH64_H_ +#endif // CPU_FEATURES_INCLUDE_CPUINFO_AARCH64_H_ diff --git a/include/cpuinfo_arm.h b/include/cpuinfo_arm.h index cc7e2d9..d885b70 100644 --- a/include/cpuinfo_arm.h +++ b/include/cpuinfo_arm.h @@ -12,8 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. -#ifndef THIRD_PARTY_CPU_FEATURES_INCLUDE_CPUINFO_ARM_H_ -#define THIRD_PARTY_CPU_FEATURES_INCLUDE_CPUINFO_ARM_H_ +#ifndef CPU_FEATURES_INCLUDE_CPUINFO_ARM_H_ +#define CPU_FEATURES_INCLUDE_CPUINFO_ARM_H_ #include "cpu_features_macros.h" @@ -77,4 +77,4 @@ const char* GetArmFeaturesEnumName(ArmFeaturesEnum); END_CPP_NAMESPACE -#endif // THIRD_PARTY_CPU_FEATURES_INCLUDE_CPUINFO_ARM_H_ +#endif // CPU_FEATURES_INCLUDE_CPUINFO_ARM_H_ diff --git a/include/cpuinfo_mips.h b/include/cpuinfo_mips.h index bcece1e..2b9bd4d 100644 --- a/include/cpuinfo_mips.h +++ b/include/cpuinfo_mips.h @@ -12,8 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. -#ifndef THIRD_PARTY_CPU_FEATURES_INCLUDE_CPUINFO_MIPS_H_ -#define THIRD_PARTY_CPU_FEATURES_INCLUDE_CPUINFO_MIPS_H_ +#ifndef CPU_FEATURES_INCLUDE_CPUINFO_MIPS_H_ +#define CPU_FEATURES_INCLUDE_CPUINFO_MIPS_H_ #include "cpu_features_macros.h" @@ -50,4 +50,4 @@ const char* GetMipsFeaturesEnumName(MipsFeaturesEnum); END_CPP_NAMESPACE -#endif // THIRD_PARTY_CPU_FEATURES_INCLUDE_CPUINFO_MIPS_H_ +#endif // CPU_FEATURES_INCLUDE_CPUINFO_MIPS_H_ diff --git a/include/cpuinfo_x86.h b/include/cpuinfo_x86.h index bad8e4d..6baf04b 100644 --- a/include/cpuinfo_x86.h +++ b/include/cpuinfo_x86.h @@ -12,8 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. -#ifndef THIRD_PARTY_CPU_FEATURES_INCLUDE_CPUINFO_X86_H_ -#define THIRD_PARTY_CPU_FEATURES_INCLUDE_CPUINFO_X86_H_ +#ifndef CPU_FEATURES_INCLUDE_CPUINFO_X86_H_ +#define CPU_FEATURES_INCLUDE_CPUINFO_X86_H_ #include "cpu_features_macros.h" @@ -144,4 +144,4 @@ const char* GetX86MicroarchitectureName(X86Microarchitecture); END_CPP_NAMESPACE -#endif // THIRD_PARTY_CPU_FEATURES_INCLUDE_CPUINFO_X86_H_ +#endif // CPU_FEATURES_INCLUDE_CPUINFO_X86_H_ diff --git a/include/internal/bit_utils.h b/include/internal/bit_utils.h index b2d42fe..a0e85c2 100644 --- a/include/internal/bit_utils.h +++ b/include/internal/bit_utils.h @@ -12,8 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. -#ifndef THIRD_PARTY_CPU_FEATURES_INCLUDE_INTERNAL_BIT_UTILS_H_ -#define THIRD_PARTY_CPU_FEATURES_INCLUDE_INTERNAL_BIT_UTILS_H_ +#ifndef CPU_FEATURES_INCLUDE_INTERNAL_BIT_UTILS_H_ +#define CPU_FEATURES_INCLUDE_INTERNAL_BIT_UTILS_H_ #include #include @@ -36,4 +36,4 @@ inline static uint32_t ExtractBitRange(uint32_t reg, uint32_t msb, END_CPP_NAMESPACE -#endif // THIRD_PARTY_CPU_FEATURES_INCLUDE_INTERNAL_BIT_UTILS_H_ +#endif // CPU_FEATURES_INCLUDE_INTERNAL_BIT_UTILS_H_ diff --git a/include/internal/cpuid_x86.h b/include/internal/cpuid_x86.h index dea1ffd..24adeb3 100644 --- a/include/internal/cpuid_x86.h +++ b/include/internal/cpuid_x86.h @@ -12,8 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. -#ifndef THIRD_PARTY_CPU_FEATURES_INCLUDE_INTERNAL_CPUID_X86_H_ -#define THIRD_PARTY_CPU_FEATURES_INCLUDE_INTERNAL_CPUID_X86_H_ +#ifndef CPU_FEATURES_INCLUDE_INTERNAL_CPUID_X86_H_ +#define CPU_FEATURES_INCLUDE_INTERNAL_CPUID_X86_H_ #include @@ -34,4 +34,4 @@ uint32_t GetXCR0Eax(void); END_CPP_NAMESPACE -#endif // THIRD_PARTY_CPU_FEATURES_INCLUDE_INTERNAL_CPUID_X86_H_ +#endif // CPU_FEATURES_INCLUDE_INTERNAL_CPUID_X86_H_ diff --git a/include/internal/filesystem.h b/include/internal/filesystem.h index da4a789..a8056b6 100644 --- a/include/internal/filesystem.h +++ b/include/internal/filesystem.h @@ -14,8 +14,8 @@ // An interface for the filesystem that allows mocking the filesystem in // unittests. -#ifndef THIRD_PARTY_CPU_FEATURES_INCLUDE_INTERNAL_FILESYSTEM_H_ -#define THIRD_PARTY_CPU_FEATURES_INCLUDE_INTERNAL_FILESYSTEM_H_ +#ifndef CPU_FEATURES_INCLUDE_INTERNAL_FILESYSTEM_H_ +#define CPU_FEATURES_INCLUDE_INTERNAL_FILESYSTEM_H_ #include #include @@ -35,4 +35,4 @@ void CloseFile(int file_descriptor); END_CPP_NAMESPACE -#endif // THIRD_PARTY_CPU_FEATURES_INCLUDE_INTERNAL_FILESYSTEM_H_ +#endif // CPU_FEATURES_INCLUDE_INTERNAL_FILESYSTEM_H_ diff --git a/include/internal/hwcaps.h b/include/internal/hwcaps.h index e220b33..5f25f9d 100644 --- a/include/internal/hwcaps.h +++ b/include/internal/hwcaps.h @@ -14,8 +14,8 @@ // Interface to retrieve hardware capabilities. It relies on Linux's getauxval // or `/proc/self/auxval` under the hood. -#ifndef THIRD_PARTY_CPU_FEATURES_INCLUDE_INTERNAL_HWCAPS_H_ -#define THIRD_PARTY_CPU_FEATURES_INCLUDE_INTERNAL_HWCAPS_H_ +#ifndef CPU_FEATURES_INCLUDE_INTERNAL_HWCAPS_H_ +#define CPU_FEATURES_INCLUDE_INTERNAL_HWCAPS_H_ #include #include "cpu_features_macros.h" @@ -70,4 +70,4 @@ HardwareCapabilities GetHardwareCapabilities(void); END_CPP_NAMESPACE -#endif // THIRD_PARTY_CPU_FEATURES_INCLUDE_INTERNAL_HWCAPS_H_ +#endif // CPU_FEATURES_INCLUDE_INTERNAL_HWCAPS_H_ diff --git a/include/internal/linux_features_aggregator.h b/include/internal/linux_features_aggregator.h index 5939565..a41c6e3 100644 --- a/include/internal/linux_features_aggregator.h +++ b/include/internal/linux_features_aggregator.h @@ -15,8 +15,8 @@ // CapabilityConfig provides a way to map cpu features to hardware caps and // /proc/cpuinfo flags. We then provide functions to update capabilities from // either source. -#ifndef THIRD_PARTY_CPU_FEATURES_INCLUDE_INTERNAL_LINUX_FEATURES_AGGREGATOR_H_ -#define THIRD_PARTY_CPU_FEATURES_INCLUDE_INTERNAL_LINUX_FEATURES_AGGREGATOR_H_ +#ifndef CPU_FEATURES_INCLUDE_INTERNAL_LINUX_FEATURES_AGGREGATOR_H_ +#define CPU_FEATURES_INCLUDE_INTERNAL_LINUX_FEATURES_AGGREGATOR_H_ #include #include @@ -55,4 +55,4 @@ void OverrideFromHwCaps(const size_t configs_size, void* const features); END_CPP_NAMESPACE -#endif // THIRD_PARTY_CPU_FEATURES_INCLUDE_INTERNAL_LINUX_FEATURES_AGGREGATOR_H_ +#endif // CPU_FEATURES_INCLUDE_INTERNAL_LINUX_FEATURES_AGGREGATOR_H_ diff --git a/include/internal/stack_line_reader.h b/include/internal/stack_line_reader.h index 4fde348..affc28a 100644 --- a/include/internal/stack_line_reader.h +++ b/include/internal/stack_line_reader.h @@ -14,8 +14,8 @@ // Reads a file line by line and stores the data on the stack. This allows // parsing files in one go without allocating. -#ifndef THIRD_PARTY_CPU_FEATURES_INCLUDE_INTERNAL_STACK_LINE_READER_H_ -#define THIRD_PARTY_CPU_FEATURES_INCLUDE_INTERNAL_STACK_LINE_READER_H_ +#ifndef CPU_FEATURES_INCLUDE_INTERNAL_STACK_LINE_READER_H_ +#define CPU_FEATURES_INCLUDE_INTERNAL_STACK_LINE_READER_H_ #include @@ -46,4 +46,4 @@ LineResult StackLineReader_NextLine(StackLineReader* reader); END_CPP_NAMESPACE -#endif // THIRD_PARTY_CPU_FEATURES_INCLUDE_INTERNAL_STACK_LINE_READER_H_ +#endif // CPU_FEATURES_INCLUDE_INTERNAL_STACK_LINE_READER_H_ diff --git a/include/internal/string_view.h b/include/internal/string_view.h index a528ad4..6fbd442 100644 --- a/include/internal/string_view.h +++ b/include/internal/string_view.h @@ -13,8 +13,8 @@ // limitations under the License. // A view over a piece of string. The view is not 0 terminated. -#ifndef THIRD_PARTY_CPU_FEATURES_INCLUDE_INTERNAL_STRING_VIEW_H_ -#define THIRD_PARTY_CPU_FEATURES_INCLUDE_INTERNAL_STRING_VIEW_H_ +#ifndef CPU_FEATURES_INCLUDE_INTERNAL_STRING_VIEW_H_ +#define CPU_FEATURES_INCLUDE_INTERNAL_STRING_VIEW_H_ #include #include @@ -98,4 +98,4 @@ bool GetAttributeKeyValue(const StringView line, StringView* key, END_CPP_NAMESPACE -#endif // THIRD_PARTY_CPU_FEATURES_INCLUDE_INTERNAL_STRING_VIEW_H_ +#endif // CPU_FEATURES_INCLUDE_INTERNAL_STRING_VIEW_H_ diff --git a/test/filesystem_for_testing.h b/test/filesystem_for_testing.h index 46b3a49..ca269e5 100644 --- a/test/filesystem_for_testing.h +++ b/test/filesystem_for_testing.h @@ -13,8 +13,8 @@ // limitations under the License. // Implements a fake filesystem, useful for tests. -#ifndef THIRD_PARTY_CPU_FEATURES_TEST_FILESYSTEM_FOR_TESTING_H_ -#define THIRD_PARTY_CPU_FEATURES_TEST_FILESYSTEM_FOR_TESTING_H_ +#ifndef CPU_FEATURES_TEST_FILESYSTEM_FOR_TESTING_H_ +#define CPU_FEATURES_TEST_FILESYSTEM_FOR_TESTING_H_ #include #include @@ -58,4 +58,4 @@ FakeFilesystem& GetEmptyFilesystem(); } // namespace cpu_features -#endif // THIRD_PARTY_CPU_FEATURES_TEST_FILESYSTEM_FOR_TESTING_H_ +#endif // CPU_FEATURES_TEST_FILESYSTEM_FOR_TESTING_H_ diff --git a/test/hwcaps_for_testing.h b/test/hwcaps_for_testing.h index d7bf470..bd20957 100644 --- a/test/hwcaps_for_testing.h +++ b/test/hwcaps_for_testing.h @@ -12,8 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. -#ifndef THIRD_PARTY_CPU_FEATURES_TEST_HWCAPS_FOR_TESTING_H_ -#define THIRD_PARTY_CPU_FEATURES_TEST_HWCAPS_FOR_TESTING_H_ +#ifndef CPU_FEATURES_TEST_HWCAPS_FOR_TESTING_H_ +#define CPU_FEATURES_TEST_HWCAPS_FOR_TESTING_H_ #include "internal/hwcaps.h" @@ -23,4 +23,4 @@ void SetHardwareCapabilities(uint32_t hwcaps, uint32_t hwcaps2); } // namespace cpu_features -#endif // THIRD_PARTY_CPU_FEATURES_TEST_HWCAPS_FOR_TESTING_H_ +#endif // CPU_FEATURES_TEST_HWCAPS_FOR_TESTING_H_