FunctionBit-wise "XOR" operation.
Syntax C/C++#include <VImath.h>
void VI_xor( iVector Y, iVector X, ui size, int C );
void VUL_xor( ulVector Y, ulVector X, ui size, unsigned long C );
C++ VecObj#include <OptiVec.h>
void vector<T>::xor( const vector<T>& X, const T& C );
Pascal/Delphiuses VImath;
procedure VI_xor( Y, X:iVector; size:UIntSize; C:Integer );
procedure VUL_xor( Y, X:ulVector; size:UIntSize; C:ULong );
CUDA function C/C++#include <cudaVImath.h>
int cudaVI_xor( iVector d_Y, iVector d_X, ui size, int C );
int cusdVI_xor( iVector d_Y, iVector d_X, ui size, int *d_C );
void VIcu_xor( iVector h_Y, iVector h_X, ui size, int C );
CUDA function Pascal/Delphiuses VImath;
function cudaVI_xor( d_Y, d_X:iVector; size:UIntSize; C:Integer ): IntBool;
function cusdVI_xor( d_Y, d_X:iVector; size:UIntSize; d_C:PInteger ): IntBool;
procedure VIcu_xor( h_Y, h_X:iVector; size:UIntSize; C:Integer );
DescriptionYi = (Xi) ^ C
The bit-wise "exclusive OR" operation is performed on each element Xi with the bit-mask given by C (i.e., a bit is 0 in Yi, if it was either 0 or 1 both in Xi and C simultaneously. It is 1 if Xi and C differed in this bit position).
Error handlingnone
Return valuenone
See alsoVI_not,   VI_and,   VI_or

VectorLib Table of Contents  OptiVec home