mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-22 12:30:32 +02:00
(Bitwise Operations): Fix lognot to ones-complement.
This commit is contained in:
parent
49584bf2b0
commit
e222111b83
1 changed files with 2 additions and 2 deletions
|
@ -1088,8 +1088,8 @@ set in the result if it is set in an odd number of arguments.
|
|||
|
||||
@deffn {Scheme Procedure} lognot n
|
||||
@deffnx {C Function} scm_lognot (n)
|
||||
Return the integer which is the 2s-complement of the integer
|
||||
argument.
|
||||
Return the integer which is the ones-complement of the integer
|
||||
argument, ie.@: each 0 bit is changed to 1 and each 1 bit to 0.
|
||||
|
||||
@lisp
|
||||
(number->string (lognot #b10000000) 2)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue