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

Description

Logical functions on Vec's.

See also
Masked Logic

Functions

template<typename T , size_t SIMD_WIDTH>
static Vec< T, SIMD_WIDTH > simd::bit_and (const Vec< T, SIMD_WIDTH > &a, const Vec< T, SIMD_WIDTH > &b)
 Computes the bitwise AND of two Vec's.
 
template<typename T , size_t SIMD_WIDTH>
static Vec< T, SIMD_WIDTH > simd::bit_andnot (const Vec< T, SIMD_WIDTH > &a, const Vec< T, SIMD_WIDTH > &b)
 Computes the bitwise ANDNOT of two Vec's.
 
template<typename T , size_t SIMD_WIDTH>
static Vec< T, SIMD_WIDTH > simd::bit_not (const Vec< T, SIMD_WIDTH > &a)
 Computes the bitwise NOT of a Vec.
 
template<typename T , size_t SIMD_WIDTH>
static Vec< T, SIMD_WIDTH > simd::bit_or (const Vec< T, SIMD_WIDTH > &a, const Vec< T, SIMD_WIDTH > &b)
 Computes the bitwise OR of two Vec's.
 
template<typename T , size_t SIMD_WIDTH>
static Vec< T, SIMD_WIDTH > simd::bit_xor (const Vec< T, SIMD_WIDTH > &a, const Vec< T, SIMD_WIDTH > &b)
 Computes the bitwise XOR of two Vec's.
 

Function Documentation

◆ bit_and()

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

Computes the bitwise AND of two Vec's.

Parameters
afirst Vec
bsecond Vec
Returns
Vec containing the bitwise AND of the two input Vec's

◆ bit_andnot()

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

Computes the bitwise ANDNOT of two Vec's.

The result is computed as (not a ) and b .

Parameters
afirst Vec
bsecond Vec
Returns
Vec containing the bitwise ANDNOT of the two input Vec's

◆ bit_not()

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

Computes the bitwise NOT of a Vec.

Parameters
aVec
Returns
Vec containing the bitwise NOT of the input Vec

◆ bit_or()

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

Computes the bitwise OR of two Vec's.

Parameters
afirst Vec
bsecond Vec
Returns
Vec containing the bitwise OR of the two input Vec's

◆ bit_xor()

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

Computes the bitwise XOR of two Vec's.

Parameters
afirst Vec
bsecond Vec
Returns
Vec containing the bitwise XOR of the two input Vec's