/** Get supported instruction set flags determined at runtime by probing the CPU.
*/
TOOLS_DLLPUBLIC InstructionSetFlags getCpuInstructionSetFlags();
/** Check if a certain instruction set is supported by the CPU at runtime.
*/
TOOLS_DLLPUBLIC bool isCpuInstructionSetSupported(InstructionSetFlags eInstructions);
/** Returns a string of supported instructions.
*/
TOOLS_DLLPUBLIC OUString instructionSetSupportedString();
/** Check if SSE2 is supported by the CPU
*/ inlinebool hasSSE2()
{ return isCpuInstructionSetSupported(InstructionSetFlags::SSE2);
}
/** Check if SSSE3 is supported by the CPU
*/ inlinebool hasSSSE3()
{ return isCpuInstructionSetSupported(InstructionSetFlags::SSSE3);
}
/** Check if AVX is supported by the CPU
*/ inlinebool hasAVX()
{ return isCpuInstructionSetSupported(InstructionSetFlags::AVX);
}
/** Check if AVX2 is supported by the CPU
*/ inlinebool hasAVX2()
{ return isCpuInstructionSetSupported(InstructionSetFlags::AVX2);
}
/** Check if AVX512F is supported by the CPU
*/ inlinebool hasAVX512F()
{ return isCpuInstructionSetSupported(InstructionSetFlags::AVX512F);
}
/** Check if Hyper Threading is supported
*/ inlinebool hasHyperThreading()
{ return isCpuInstructionSetSupported(InstructionSetFlags::HYPER);
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.