|
Generic SIMD Intrinsic Library API
0.6
|
Data representation and operations on a vector of 4 boolean values. This is used in predicated vector operations. Specifically the ith value of svec<4,bool> indicates whether the ith lane of a predicated vector operation is enabled or not. More...
#include <generic4.h>
Classes | |
| struct | Helper |
| A special helper class to support customized subscript[] operations. More... | |
Public Member Functions | |
| svec () | |
| Default constructor. More... | |
| svec (uint32_t a, uint32_t b, uint32_t c, uint32_t d) | |
| Constructor. More... | |
| svec (uint32_t a) | |
| Constructor. More... | |
| Helper | operator[] (int index) |
| const uint32_t | operator[] (int index) const |
| svec< 4,bool > | operator== (svec< 4, bool > a) |
| svec< 4,bool > | operator!= (svec< 4, bool > a) |
| void | store (svec< 4, bool > *p) |
| Store the vector to address p. More... | |
| bool | any_true () |
| bool | all_true () |
| bool | none_true () |
| svec< 4,bool > | operator| (svec< 4, bool >) |
| svec< 4,bool > | operator& (svec< 4, bool > a) |
| svec< 4,bool > | operator^ (svec< 4, bool > a) |
| svec< 4,bool > | operator~ () |
| svec< 4,bool > | operator! () |
| svec< 4,bool > | operator&& (svec< 4, bool > a) |
| svec< 4,bool > | operator|| (svec< 4, bool > a) |
Static Public Member Functions | |
| static svec< 4,bool > | load (svec< 4, bool > *p) |
| load the vector from the pointer p More... | |
Public Attributes | |
| uint32_t | v |
Friends | |
| std::ostream & | operator<< (std::ostream &out, const svec< 4, bool > &v) |
Data representation and operations on a vector of 4 boolean values. This is used in predicated vector operations. Specifically the ith value of svec<4,bool> indicates whether the ith lane of a predicated vector operation is enabled or not.
See also gather, scatter, load, store, and compare operations.
| generic::svec< 4, bool >::svec | ( | ) |
Default constructor.
| generic::svec< 4, bool >::svec | ( | uint32_t | a, |
| uint32_t | b, | ||
| uint32_t | c, | ||
| uint32_t | d | ||
| ) |
Constructor.
| [in] | a,b,c,d | boolean values |
| generic::svec< 4, bool >::svec | ( | uint32_t | a | ) |
Constructor.
| [in] | a | a boolean value |
| bool generic::svec< 4, bool >::all_true | ( | ) |
| bool generic::svec< 4, bool >::any_true | ( | ) |
|
static |
load the vector from the pointer p
| [in] | p | load address |
| bool generic::svec< 4, bool >::none_true | ( | ) |
| svec< 4 ,bool> generic::svec< 4, bool >::operator! | ( | ) |
| svec< 4 ,bool> generic::svec< 4, bool >::operator!= | ( | svec< 4, bool > | a | ) |
| svec< 4 ,bool> generic::svec< 4, bool >::operator& | ( | svec< 4, bool > | a | ) |
| svec< 4 ,bool> generic::svec< 4, bool >::operator&& | ( | svec< 4, bool > | a | ) |
| svec< 4 ,bool> generic::svec< 4, bool >::operator== | ( | svec< 4, bool > | a | ) |
| Helper generic::svec< 4, bool >::operator[] | ( | int | index | ) |
| const uint32_t generic::svec< 4, bool >::operator[] | ( | int | index | ) | const |
| svec< 4 ,bool> generic::svec< 4, bool >::operator^ | ( | svec< 4, bool > | a | ) |
| svec< 4 ,bool> generic::svec< 4, bool >::operator| | ( | svec< 4, bool > | ) |
| svec< 4 ,bool> generic::svec< 4, bool >::operator|| | ( | svec< 4, bool > | a | ) |
| svec< 4 ,bool> generic::svec< 4, bool >::operator~ | ( | ) |
| void generic::svec< 4, bool >::store | ( | svec< 4, bool > * | p | ) |
Store the vector to address p.
| [in] | p | store address |
|
friend |
| uint32_t generic::svec< 4, bool >::v |
1.8.5