#elisp
Function:
logand &rest ints-or-markersThis function returns the “logical and” of the arguments: the n th bit is set in the result if, and only if, the n th bit is
set in all the arguments.
If you want to change selection, open document below and click on "Move attachment"
GNU Emacs Lisp Reference Manual: Bitwise Operations ; = 0000...000001
(ash 5 -2)
⇒ 1
(lsh -5 -2) ; -5 = 1111...111011
⇒ 268435454
; = 0011...111110
(ash -5 -2) ; -5 = 1111...111011
⇒ -2 ; = 1111...111110
<span>Function: logand &rest ints-or-markers This function returns the “logical and” of the arguments: the
n th bit is set in the result if, and only if, the n th bit is
set in all the arguments. (“Set” means that the value of the bit is 1
rather than 0.)
For example, using 4-bit binary numbers, the “logical and” of 13 and
12 is 12: 1101 combined with 1100 produces 1100.
In bo Summary
status | not read | | reprioritisations | |
---|
last reprioritisation on | | | suggested re-reading day | |
---|
started reading on | | | finished reading on | |
---|
Details