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. Any help will be much aprecciated!
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 |=.
participants (2)
-
Hans Aberg
-
Lars Ullrich