#elisp
Function:
lognot integerThis function returns the logical complement of its argument: the n th
bit is one in the result if, and only if, the n th bit is zero in integer , and vice-versa.
If you want to change selection, open document below and click on "Move attachment"
GNU Emacs Lisp Reference Manual: Bitwise Operations ; 5 = 0000...000101
⇒ 9 ; 9 = 0000...001001
(logxor 12 5 7) ; 12 = 0000...001100
; 5 = 0000...000101
; 7 = 0000...000111
⇒ 14 ; 14 = 0000...001110
<span>Function: lognot integer This function returns the logical complement of its argument: the n th
bit is one in the result if, and only if, the n th bit is zero in
integer , and vice-versa.
(lognot 5)
⇒ -6
;; 5 = 0000...000101 (30 bits total)
;; becomes
;; -6 = 1111...111010 (30 bits total)
Next: Math Functions, Previous: Rounding Operations, Up: Numbers Summary
status | not read | | reprioritisations | |
---|
last reprioritisation on | | | suggested re-reading day | |
---|
started reading on | | | finished reading on | |
---|
Details