LJ::bit_breakdown

LJ::bit_breakdown — Breaks down a bitmask into an array of bits enabled.

Use

LJ::bit_breakdown(mask);

Arguments

  • mask. The number to break down.

Source:

cgi-bin/ljlib.pl

Returns:

A list of bits enabled. E.g., 3 returns (0, 2) indicating that bits 0 and 2 (numbering from the right) are currently on.