Bitwise union of two numbers
Description The | object performs a bit-by-bit "or" of two numbers (expressed in binary for the task). It is similar to the operator found in the C programming language.
|| Sets an initial value to be or-ed with a number received in the left inlet.
|| In left inlet: Performs the calculation with the numbers currently stored. If there is no argument, | initially holds .
|| In left inlet: Outputs a number composed of all those bits which are 1 in either of the two numbers.
|| In right inlet: The number is stored for combination with a number received in the left inlet.
|| Converted to
|| In left inlet: The word
followed by a number will set the input to the bitwise-or operation without causing output (a successive will output the result). |
|| In left inlet: Combines the first and second numbers bit-by-bit, and outputs a number composed of all those bits which are 1 in either of the two numbers.
All non-zero bits are combined......... Can be used to pack two numbers into one int
Bitwise intersection of two numbers
If both numbers are non-zero, output a 1
If either of two numbers is non-zero, output a 1
|Max Basic Tutorial 19: Timing
||Max Basic Tutorial 19: Timing