#elisp
Function:
logxor &rest ints-or-markersThis function returns the “exclusive or” of its arguments: the n th bit is set in the result if, and only if, the n th bit is
set in an odd number of the arguments. If there are no arguments, the
result is 0, which is an identity element for this operation. If
logxor
is passed just one argument, it returns that argument.
If you want to change selection, open document below and click on "Move attachment"
GNU Emacs Lisp Reference Manual: Bitwise Operations ; 5 = 0000...000101
⇒ 13 ; 13 = 0000...001101
(logior 12 5 7) ; 12 = 0000...001100
; 5 = 0000...000101
; 7 = 0000...000111
⇒ 15 ; 15 = 0000...001111
<span>Function: logxor &rest ints-or-markers This function returns the “exclusive or” of its arguments: the
n th bit is set in the result if, and only if, the n th bit is
set in an odd number of the arguments. If there are no arguments, the
result is 0, which is an identity element for this operation. If
logxor is passed just one argument, it returns that argument.
; 30-bit binary values
(logxor 12 5) ; 12 = 0000...001100
; 5 = 0000...000101
⇒ 9 ; 9 = 0000...001001
(logxor 12 5 7) ; 12 = 0 Summary
status | not read | | reprioritisations | |
---|
last reprioritisation on | | | suggested re-reading day | |
---|
started reading on | | | finished reading on | |
---|
Details