VI_xor | VBI_xor | VSI_xor | VLI_xor | VQI_xor | |
VU_xor | VUB_xor | VUS_xor | VUL_xor | VUQ_xor | VUI_xor |
|
Function | Bit-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/Delphi | uses 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/Delphi | uses 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 );
|
|
Description | Yi = (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). |
|
|
|
|