LibreOffice Module tools (master) 1
Namespaces | Macros | Functions
cpuid.cxx File Reference
#include <tools/cpuid.hxx>
#include <cstdint>
Include dependency graph for cpuid.cxx:

Go to the source code of this file.

Namespaces

namespace  cpuid
 

Macros

#define HYPER_bit   (1 << 28)
 
#define SSE2_bit   (1 << 26)
 
#define SSSE3_bit   (1 << 9)
 
#define SSE41_bit   (1 << 19)
 
#define SSE42_bit   (1 << 20)
 
#define XSAVE_bit   (1 << 27)
 
#define AVX_bit   (1 << 28)
 
#define AVX2_bit   (1 << 5)
 
#define AVX512F_bit   (1 << 16)
 

Functions

InstructionSetFlags cpuid::getCpuInstructionSetFlags ()
 Get supported instruction set flags determined at runtime by probing the CPU. More...
 
bool cpuid::isCpuInstructionSetSupported (InstructionSetFlags eInstructions)
 Check if a certain instruction set is supported by the CPU at runtime. More...
 
OUString cpuid::instructionSetSupportedString ()
 Returns a string of supported instructions. More...
 

Macro Definition Documentation

◆ AVX2_bit

#define AVX2_bit   (1 << 5)

Definition at line 58 of file cpuid.cxx.

◆ AVX512F_bit

#define AVX512F_bit   (1 << 16)

Definition at line 59 of file cpuid.cxx.

◆ AVX_bit

#define AVX_bit   (1 << 28)

Definition at line 57 of file cpuid.cxx.

◆ HYPER_bit

#define HYPER_bit   (1 << 28)

Definition at line 51 of file cpuid.cxx.

◆ SSE2_bit

#define SSE2_bit   (1 << 26)

Definition at line 52 of file cpuid.cxx.

◆ SSE41_bit

#define SSE41_bit   (1 << 19)

Definition at line 54 of file cpuid.cxx.

◆ SSE42_bit

#define SSE42_bit   (1 << 20)

Definition at line 55 of file cpuid.cxx.

◆ SSSE3_bit

#define SSSE3_bit   (1 << 9)

Definition at line 53 of file cpuid.cxx.

◆ XSAVE_bit

#define XSAVE_bit   (1 << 27)

Definition at line 56 of file cpuid.cxx.