Wrapper for SIMD compatible logical types. More...
#include <eve/arch/cpu/logical.hpp>
Required header: #include <eve/logical.hpp>
eve::logical is an architecture-agnostic representation of a boolean mask and provides standardized API to access informations, compute values and manipulate such mask. Contrary to bool
, an instance of logical has the same sizeof as T
, allowing seamless interaction with an instance eve::logical<eve::wide< T >>.
T | Type of value to store a mask from |
Public Member Functions | |
Constructors | |
constexpr | logical () noexcept |
Default constructor. | |
constexpr | logical (bool v) noexcept |
Construct from a bool | |
template<plain_scalar_value U> | |
constexpr | logical (U const &v) noexcept |
Construct from a plain_scalar_value. | |
Assignment operators | |
constexpr logical & | operator= (bool v) &noexcept |
Assign a bool | |