is_any_bits_set


is_any_bits_set(i1, i2)
      

Return true if the bitwise and of the integers i1 and i2 is different from zero, otherwise return false.

Examples:


is_any_bits_set(0b0010, 0b1110)
// true

is_any_bits_set(0b0010, 0b1100)
// false
      

Also see:

is_all_bits_set
is_bit_set


Core Module Index | Contents