Vc  0.7.5-dev
SIMD Vector Classes for C++
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  float_m
 Mask object to use with float_v objects. More...
class  double_m
 Mask object to use with double_v objects. More...
class  int_m
 Mask object to use with int_v objects. More...
class  uint_m
 Mask object to use with uint_v objects. More...
class  short_m
 Mask object to use with short_v objects. More...
class  ushort_m
 Mask object to use with ushort_v objects. More...
class  sfloat_m
 Mask object to use with sfloat_v objects. More...

Functions

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

Function Documentation

std::ostream& operator<< ( std::ostream &  s,
const typename Vc::Vector< T >::Mask &  v 
)

Prints the contents of a mask into a stream object.

std::cout << m << std::endl;

will output (with SSE):

m[1110 0000]
Parameters
sAny standard C++ ostream object. For example std::cout or a std::stringstream object.
vAny 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 that case it will colorize the output.