9 Sep
2010
9 Sep
'10
10:04 a.m.
On 9 Sep 2010, at 12:50, Lars Ullrich wrote:
Dear list, Is there a way to do this operator functions in chuck?
">>" Shift all bits to the right ( has the effect of dividing a number by a power of two, but is less expensive in computer time.)
"&" Bitwise intersection of two numbers. The & object performs a bit- by-bit "and" of two numbers (expressed in binary for the task). It is similar to the operator found in the C programming language.
See the ChucK manual, searching for "bitwise". These are the same as in C; in addition, there are operators like |=> corresponding to |=.