Om
1.0.0
A universal framework for multimedia simulation
|
A class that contains flags that specify the type of SIMD operations supported. More...
#include <omSIMDFlags.h>
Public Types | |
enum | Flag { SSE = (1 << 0), SSE_2 = (1 << 1), SSE_3 = (1 << 2), SSSE_3 = (1 << 3), SSE_4_1 = (1 << 4), SSE_4_2 = (1 << 5), SSE_4 = SSE_4_1 | SSE_4_2, AVX = (1 << 6), AVX_2 = (1 << 7), AVX_512F = (1 << 8), AVX_512PF = (1 << 9), AVX_512ER = (1 << 10), AVX_512CD = (1 << 11), ARM_NEON = (1 << 30), ALTIVEC = (1 << 31), UNDEFINED = 0 } |
An enum that specifies the different SIMD flags specifing the CPU capabilities. More... | |
Public Member Functions | |
SIMDFlags () | |
Create a new SIMD flags object with no flags set. More... | |
SIMDFlags (Flag flag) | |
Create a new SIMD flags object with the specified flag value initially set. More... | |
SIMDFlags (UInt32 newFlags) | |
Create a new SIMD flags object with the specified initial combined flags value. More... | |
operator UInt32 () const | |
Convert this flags object to an integer value. More... | |
Bool | isSet (Flag flag) const |
Return whether or not the specified flag value is set for this flags object. More... | |
void | set (Flag flag, Bool newIsSet) |
Set whether or not the specified flag value is set for this flags object. More... | |
Static Public Member Functions | |
static SIMDFlags | get () |
Return an object containing the SIMD flags for the current CPU. More... | |
A class that contains flags that specify the type of SIMD operations supported.
These flags allow the user to determine at runtime the capabilities of the CPU, and to then choose one code path or another based on the result.
An enum that specifies the different SIMD flags specifing the CPU capabilities.
|
inline |
Create a new SIMD flags object with no flags set.
|
inline |
Create a new SIMD flags object with the specified flag value initially set.
|
inline |
Create a new SIMD flags object with the specified initial combined flags value.
|
inline |
Convert this flags object to an integer value.
This operator is provided so that the object can be used as an integer value for bitwise logical operations.
Return whether or not the specified flag value is set for this flags object.
Set whether or not the specified flag value is set for this flags object.
|
static |
Return an object containing the SIMD flags for the current CPU.