VI_orVBI_orVSI_orVLI_orVQI_or
VU_orVUB_orVUS_orVUL_orVUI_or
FunctionBit-wise "OR" operation
Syntax C/C++#include <VImath.h>
void VI_or( iVector Y, iVector X, ui size, int C);
void VUL_or( ulVector Y, ulVector X, ui size, unsigned long C );
C++ VecObj#include <OptiVec.h>
void vector<T>::or( const vector<T>& X, const T& C );
Pascal/Delphiuses VImath;
procedure VI_or( Y, X:iVector; size:UInt; C:Integer );
DescriptionYi = (Xi) | C
The bit-wise "inclusive OR" operation is performed on each element Xi with the bit-mask given by C. A bit is 1 in Yi, if it was not simultaneously 0 in Xi and in C, i.e., if it was 1 at least in one of them.
Error handlingnone
Return valuenone
See alsoVI_not,   VI_and,   VI_xor

VectorLib Table of Contents  OptiVec home