Vc
1.3.2-dev
SIMD Vector Classes for C++
|
|
This class identifies the specific implementation Vc uses in the current translation unit in terms of a type.
Most importantantly, the type CurrentImplementation instantiates the class template with the bitmask identifying the current implementation. The contents of the bitmask can be queried with the static member functions of the class.
#include <global.h>
Static Public Member Functions | |
static constexpr Implementation | current () |
Returns the currently used Vc::Implementation. | |
static constexpr bool | is (Implementation impl) |
Returns whether impl is the current Vc::Implementation. | |
static constexpr bool | is_between (Implementation low, Implementation high) |
Returns whether the current Vc::Implementation implements at least low and at most high . | |
static constexpr bool | runs_on (unsigned int extraInstructions) |
Returns whether the current code would run on a CPU providing extraInstructions . | |