Vc 1.4.5
SIMD Vector Classes for C++
 
Loading...
Searching...
No Matches
Masks

Detailed Description

Mask classes are abstractions for the results of vector comparisons. The actual implementation differs depending on the SIMD instruction set. On SSE they contain a full 128-bit datatype while on a different architecture they might be bit-fields.

Classes

class  Mask< T, Abi >
 The main SIMD mask class. More...
 

Functions

template<typename T , typename Abi >
std::ostream & operator<< (std::ostream &out, const Vc::Mask< T, Abi > &m)
 Prints the contents of a mask into a stream object.
 

Mask Type Aliases

using double_m = Mask<double>
 mask type for double_v vectors
 
using float_m = Mask< float>
 mask type for float_v vectors
 
using int_m = Mask< int>
 mask type for int_v vectors
 
using uint_m = Mask< uint>
 mask type for uint_v vectors
 
using short_m = Mask< short>
 mask type for short_v vectors
 
using ushort_m = Mask<ushort>
 mask type for ushort_v vectors
 

Function Documentation

◆ operator<<()

template<typename T , typename Abi >
std::ostream & operator<< ( std::ostream & out,
const Vc::Mask< T, Abi > & m )
inline

Prints the contents of a mask into a stream object.

std::cout << m << std::endl;
The main SIMD mask class.
Definition mask.h:42
static Vector IndexesFromZero()
Returns a vector with the entries initialized to 0, 1, 2, 3, 4, 5, ...

will output (with SSE):

m[1110 0000]
Parameters
outAny standard C++ ostream object. For example std::cout or a std::stringstream object.
mAny Vc::Mask object.
Returns
The ostream object: to chain multiple stream operations.
Note
With the GNU standard library this function will check whether the output stream is a tty in which case it colorizes the output.

Definition at line 157 of file IO.