// Copyright 2017 The Crashpad Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. #include "snapshot/x86/cpuid_reader.h" #include <stddef.h> #include "build/build_config.h" #include "snapshot/cpu_context.h" #if BUILDFLAG(IS_WIN) #include <immintrin.h> #include <intrin.h> #endif // BUILDFLAG(IS_WIN) #if defined(ARCH_CPU_X86_FAMILY) namespace crashpad { namespace internal { CpuidReader::CpuidReader() : … { … } CpuidReader::~CpuidReader() { … } uint32_t CpuidReader::Revision() const { … } uint32_t CpuidReader::Leaf7Features() const { … } bool CpuidReader::SupportsDAZ() const { … } void CpuidReader::Cpuid(uint32_t cpuinfo[4], uint32_t leaf) const { … } } // namespace internal } // namespace crashpad #endif // ARCH_CPU_X86_FAMILY