T-SIMD v31.1.0
A C++ template SIMD library
Loading...
Searching...
No Matches
Operators

Description

Operators for Vec's.

Functions

template<typename T , size_t SIMD_WIDTH>
static Vec< T, SIMD_WIDTH > simd::operator!= (const Vec< T, SIMD_WIDTH > &a, const Vec< T, SIMD_WIDTH > &b)
 Not equal to operator. Maps to cmpneq().
 
template<typename T , size_t SIMD_WIDTH>
static Vec< T, SIMD_WIDTH > simd::operator& (const Vec< T, SIMD_WIDTH > &a, const Vec< T, SIMD_WIDTH > &b)
 Bitwise AND operator. Maps to bit_and().
 
template<typename T , size_t SIMD_WIDTH>
static Vec< T, SIMD_WIDTH > simd::operator&= (Vec< T, SIMD_WIDTH > &a, const Vec< T, SIMD_WIDTH > &b)
 Bitwise AND assignment operator. Maps to bit_and().
 
template<typename T , size_t SIMD_WIDTH>
static Vec< T, SIMD_WIDTH > simd::operator* (const Vec< T, SIMD_WIDTH > &a, const Vec< T, SIMD_WIDTH > &b)
 Multiplication operator. Maps to mul().
 
template<typename T , size_t SIMD_WIDTH>
static Vec< T, SIMD_WIDTH > simd::operator*= (Vec< T, SIMD_WIDTH > &a, const Vec< T, SIMD_WIDTH > &b)
 Multiplication assignment operator. Maps to mul().
 
template<typename T , size_t SIMD_WIDTH>
static Vec< T, SIMD_WIDTH > simd::operator+ (const Vec< T, SIMD_WIDTH > &a, const Vec< T, SIMD_WIDTH > &b)
 Addition operator. Maps to adds().
 
template<typename T , size_t SIMD_WIDTH>
static Vec< T, SIMD_WIDTH > simd::operator+= (Vec< T, SIMD_WIDTH > &a, const Vec< T, SIMD_WIDTH > &b)
 Addition assignment operator. Maps to adds().
 
template<typename T , size_t SIMD_WIDTH>
static Vec< T, SIMD_WIDTH > simd::operator- (const Vec< T, SIMD_WIDTH > &a)
 Negation operator. Maps to neg().
 
template<typename T , size_t SIMD_WIDTH>
static Vec< T, SIMD_WIDTH > simd::operator- (const Vec< T, SIMD_WIDTH > &a, const Vec< T, SIMD_WIDTH > &b)
 Subtraction operator. Maps to subs().
 
template<typename T , size_t SIMD_WIDTH>
static Vec< T, SIMD_WIDTH > simd::operator-= (Vec< T, SIMD_WIDTH > &a, const Vec< T, SIMD_WIDTH > &b)
 Subtraction assignment operator. Maps to subs().
 
template<typename T , size_t SIMD_WIDTH>
static Vec< T, SIMD_WIDTH > simd::operator/ (const Vec< T, SIMD_WIDTH > &a, const Vec< T, SIMD_WIDTH > &b)
 Division operator. Maps to div().
 
template<typename T , size_t SIMD_WIDTH>
static Vec< T, SIMD_WIDTH > simd::operator/= (Vec< T, SIMD_WIDTH > &a, const Vec< T, SIMD_WIDTH > &b)
 Division assignment operator. Maps to div().
 
template<typename T , size_t SIMD_WIDTH>
static Vec< T, SIMD_WIDTH > simd::operator< (const Vec< T, SIMD_WIDTH > &a, const Vec< T, SIMD_WIDTH > &b)
 Less than operator. Maps to cmplt().
 
template<typename T , size_t SIMD_WIDTH>
static Vec< T, SIMD_WIDTH > simd::operator<= (const Vec< T, SIMD_WIDTH > &a, const Vec< T, SIMD_WIDTH > &b)
 Less than or equal operator. Maps to cmple().
 
template<typename T , size_t SIMD_WIDTH>
static Vec< T, SIMD_WIDTH > simd::operator== (const Vec< T, SIMD_WIDTH > &a, const Vec< T, SIMD_WIDTH > &b)
 Equal to operator. Maps to cmpeq().
 
template<typename T , size_t SIMD_WIDTH>
static Vec< T, SIMD_WIDTH > simd::operator> (const Vec< T, SIMD_WIDTH > &a, const Vec< T, SIMD_WIDTH > &b)
 Greater than operator. Maps to cmpgt().
 
template<typename T , size_t SIMD_WIDTH>
static Vec< T, SIMD_WIDTH > simd::operator>= (const Vec< T, SIMD_WIDTH > &a, const Vec< T, SIMD_WIDTH > &b)
 Greater than or equal operator. Maps to cmpge().
 
template<typename T , size_t SIMD_WIDTH>
static Vec< T, SIMD_WIDTH > simd::operator^ (const Vec< T, SIMD_WIDTH > &a, const Vec< T, SIMD_WIDTH > &b)
 Bitwise XOR operator. Maps to bit_xor().
 
template<typename T , size_t SIMD_WIDTH>
static Vec< T, SIMD_WIDTH > simd::operator^= (Vec< T, SIMD_WIDTH > &a, const Vec< T, SIMD_WIDTH > &b)
 Bitwise XOR assignment operator. Maps to bit_xor().
 
template<typename T , size_t SIMD_WIDTH>
static Vec< T, SIMD_WIDTH > simd::operator| (const Vec< T, SIMD_WIDTH > &a, const Vec< T, SIMD_WIDTH > &b)
 Bitwise OR operator. Maps to bit_or().
 
template<typename T , size_t SIMD_WIDTH>
static Vec< T, SIMD_WIDTH > simd::operator|= (Vec< T, SIMD_WIDTH > &a, const Vec< T, SIMD_WIDTH > &b)
 Bitwise OR assignment operator. Maps to bit_or().
 
template<typename T , size_t SIMD_WIDTH>
static Vec< T, SIMD_WIDTH > simd::operator~ (const Vec< T, SIMD_WIDTH > &a)
 Bitwise NOT operator. Maps to bit_not().
 

Function Documentation

◆ operator!=()

template<typename T , size_t SIMD_WIDTH>
static Vec< T, SIMD_WIDTH > simd::operator!= ( const Vec< T, SIMD_WIDTH > & a,
const Vec< T, SIMD_WIDTH > & b )
inlinestatic

Not equal to operator. Maps to cmpneq().

See also
cmpneq()

◆ operator&()

template<typename T , size_t SIMD_WIDTH>
static Vec< T, SIMD_WIDTH > simd::operator& ( const Vec< T, SIMD_WIDTH > & a,
const Vec< T, SIMD_WIDTH > & b )
inlinestatic

Bitwise AND operator. Maps to bit_and().

See also
bit_and()

◆ operator&=()

template<typename T , size_t SIMD_WIDTH>
static Vec< T, SIMD_WIDTH > simd::operator&= ( Vec< T, SIMD_WIDTH > & a,
const Vec< T, SIMD_WIDTH > & b )
inlinestatic

Bitwise AND assignment operator. Maps to bit_and().

See also
bit_and()

◆ operator*()

template<typename T , size_t SIMD_WIDTH>
static Vec< T, SIMD_WIDTH > simd::operator* ( const Vec< T, SIMD_WIDTH > & a,
const Vec< T, SIMD_WIDTH > & b )
inlinestatic

Multiplication operator. Maps to mul().

See also
mul()

◆ operator*=()

template<typename T , size_t SIMD_WIDTH>
static Vec< T, SIMD_WIDTH > simd::operator*= ( Vec< T, SIMD_WIDTH > & a,
const Vec< T, SIMD_WIDTH > & b )
inlinestatic

Multiplication assignment operator. Maps to mul().

See also
mul()

◆ operator+()

template<typename T , size_t SIMD_WIDTH>
static Vec< T, SIMD_WIDTH > simd::operator+ ( const Vec< T, SIMD_WIDTH > & a,
const Vec< T, SIMD_WIDTH > & b )
inlinestatic

Addition operator. Maps to adds().

See also
adds()

◆ operator+=()

template<typename T , size_t SIMD_WIDTH>
static Vec< T, SIMD_WIDTH > simd::operator+= ( Vec< T, SIMD_WIDTH > & a,
const Vec< T, SIMD_WIDTH > & b )
inlinestatic

Addition assignment operator. Maps to adds().

See also
adds()

◆ operator-() [1/2]

template<typename T , size_t SIMD_WIDTH>
static Vec< T, SIMD_WIDTH > simd::operator- ( const Vec< T, SIMD_WIDTH > & a)
inlinestatic

Negation operator. Maps to neg().

See also
neg()

◆ operator-() [2/2]

template<typename T , size_t SIMD_WIDTH>
static Vec< T, SIMD_WIDTH > simd::operator- ( const Vec< T, SIMD_WIDTH > & a,
const Vec< T, SIMD_WIDTH > & b )
inlinestatic

Subtraction operator. Maps to subs().

See also
subs()

◆ operator-=()

template<typename T , size_t SIMD_WIDTH>
static Vec< T, SIMD_WIDTH > simd::operator-= ( Vec< T, SIMD_WIDTH > & a,
const Vec< T, SIMD_WIDTH > & b )
inlinestatic

Subtraction assignment operator. Maps to subs().

See also
subs()

◆ operator/()

template<typename T , size_t SIMD_WIDTH>
static Vec< T, SIMD_WIDTH > simd::operator/ ( const Vec< T, SIMD_WIDTH > & a,
const Vec< T, SIMD_WIDTH > & b )
inlinestatic

Division operator. Maps to div().

See also
div()

◆ operator/=()

template<typename T , size_t SIMD_WIDTH>
static Vec< T, SIMD_WIDTH > simd::operator/= ( Vec< T, SIMD_WIDTH > & a,
const Vec< T, SIMD_WIDTH > & b )
inlinestatic

Division assignment operator. Maps to div().

See also
div()

◆ operator<()

template<typename T , size_t SIMD_WIDTH>
static Vec< T, SIMD_WIDTH > simd::operator< ( const Vec< T, SIMD_WIDTH > & a,
const Vec< T, SIMD_WIDTH > & b )
inlinestatic

Less than operator. Maps to cmplt().

See also
cmplt()

◆ operator<=()

template<typename T , size_t SIMD_WIDTH>
static Vec< T, SIMD_WIDTH > simd::operator<= ( const Vec< T, SIMD_WIDTH > & a,
const Vec< T, SIMD_WIDTH > & b )
inlinestatic

Less than or equal operator. Maps to cmple().

See also
cmple()

◆ operator==()

template<typename T , size_t SIMD_WIDTH>
static Vec< T, SIMD_WIDTH > simd::operator== ( const Vec< T, SIMD_WIDTH > & a,
const Vec< T, SIMD_WIDTH > & b )
inlinestatic

Equal to operator. Maps to cmpeq().

See also
cmpeq()

◆ operator>()

template<typename T , size_t SIMD_WIDTH>
static Vec< T, SIMD_WIDTH > simd::operator> ( const Vec< T, SIMD_WIDTH > & a,
const Vec< T, SIMD_WIDTH > & b )
inlinestatic

Greater than operator. Maps to cmpgt().

See also
cmpgt()

◆ operator>=()

template<typename T , size_t SIMD_WIDTH>
static Vec< T, SIMD_WIDTH > simd::operator>= ( const Vec< T, SIMD_WIDTH > & a,
const Vec< T, SIMD_WIDTH > & b )
inlinestatic

Greater than or equal operator. Maps to cmpge().

See also
cmpge()

◆ operator^()

template<typename T , size_t SIMD_WIDTH>
static Vec< T, SIMD_WIDTH > simd::operator^ ( const Vec< T, SIMD_WIDTH > & a,
const Vec< T, SIMD_WIDTH > & b )
inlinestatic

Bitwise XOR operator. Maps to bit_xor().

See also
bit_xor()

◆ operator^=()

template<typename T , size_t SIMD_WIDTH>
static Vec< T, SIMD_WIDTH > simd::operator^= ( Vec< T, SIMD_WIDTH > & a,
const Vec< T, SIMD_WIDTH > & b )
inlinestatic

Bitwise XOR assignment operator. Maps to bit_xor().

See also
bit_xor()

◆ operator|()

template<typename T , size_t SIMD_WIDTH>
static Vec< T, SIMD_WIDTH > simd::operator| ( const Vec< T, SIMD_WIDTH > & a,
const Vec< T, SIMD_WIDTH > & b )
inlinestatic

Bitwise OR operator. Maps to bit_or().

See also
bit_or()

◆ operator|=()

template<typename T , size_t SIMD_WIDTH>
static Vec< T, SIMD_WIDTH > simd::operator|= ( Vec< T, SIMD_WIDTH > & a,
const Vec< T, SIMD_WIDTH > & b )
inlinestatic

Bitwise OR assignment operator. Maps to bit_or().

See also
bit_or()

◆ operator~()

template<typename T , size_t SIMD_WIDTH>
static Vec< T, SIMD_WIDTH > simd::operator~ ( const Vec< T, SIMD_WIDTH > & a)
inlinestatic

Bitwise NOT operator. Maps to bit_not().

See also
bit_not()