Function: logand

logand is a function defined in data.c.

Signature

(logand &rest INTS-OR-MARKERS)

Documentation

Return bitwise-and of all the arguments.

Arguments may be integers, or markers converted to integers.

Other relevant functions are documented in the number group.

Shortdoc

;; number
(logand #b10 #b111)
    => #b10

Source Code

// Defined in /usr/src/emacs/src/data.c
{
  if (nargs == 0)
    return make_fixnum (-1);
  Lisp_Object a = check_integer_coerce_marker (args[0]);
  return nargs == 1 ? a : arith_driver (Alogand, nargs, args, a);
}