VI_xorVBI_xorVSI_xorVLI_xorVQI_xor
VU_xorVUB_xorVUS_xorVUL_xorVUI_xor
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:UInt; C:Integer );
procedure VUL_xor( Y, X:ulVector; size:UInt; C:ULong );
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