suve

awful: function: bwand

Declaration

mixed :bwand ( mixed $ARG , … )
mixed :b& ( mixed $ARG , … )

Summary

Takes any number of arguments. Takes the rightmost pair of arguments and performs a bitwise AND on them, and then performs ANDs on the nth-rightmost argument and the result of previous operation. Value calculated is then returned.

Example

# Bitwise operations.
:writeln :b& b10101010 b11001100
:writeln :b? b10101010 b11001100
:writeln :b^ b10101010 b11001100

wikipage modified on 2014/0601/2316