# SPL Module Reference: bits

load "bits";

    Bits Module

    This module adds built-in functions for bit manipulations.

builtin bits_and(@values);
builtin bits_or(@values);
builtin bits_xor(@values);
builtin bits_not(value);
builtin bits_shl(value, bits);
builtin bits_shr(value, bits);

builtin bits_and(@values);

    Do a bitwise AND between all arguments and return the result.

builtin bits_or(@values);

    Do a bitwise OR between all arguments and return the result.

builtin bits_xor(@values);

    Do a bitwise XOR between all arguments and return the result.

builtin bits_not(value);

    Do a bitwise NOT of the argument and return the result.

builtin bits_shl(value, bits);

    Do a bitwise SHIFT-LEFT of the argument and return the result.

builtin bits_shr(value, bits);

    Do a bitwise SHIFT-RIGHT of the argument and return the result.

Generated by SPLDOC. | http://www.clifford.at/spl/