diff options
| author | Paul Eggert | 2019-07-31 06:56:14 -0700 |
|---|---|---|
| committer | Paul Eggert | 2019-07-31 07:00:12 -0700 |
| commit | 495d0667fcf4df9f10c261684162c64f08aadd71 (patch) | |
| tree | d5c23793aa3c6a965d68647af24136fb344a6cf8 | |
| parent | c306848c0fe830127ee8d4fd936f17f341ad179b (diff) | |
| download | emacs-495d0667fcf4df9f10c261684162c64f08aadd71.tar.gz emacs-495d0667fcf4df9f10c261684162c64f08aadd71.zip | |
Clarify (lognot bignum)
* doc/lispref/numbers.texi (Bitwise Operations):
Say that (= (lognot n) (- -1 n)).
| -rw-r--r-- | doc/lispref/numbers.texi | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/lispref/numbers.texi b/doc/lispref/numbers.texi index cae8babcb40..0c71387a8a7 100644 --- a/doc/lispref/numbers.texi +++ b/doc/lispref/numbers.texi | |||
| @@ -1072,7 +1072,8 @@ result is 0, which is an identity element for this operation. If | |||
| 1072 | @defun lognot integer | 1072 | @defun lognot integer |
| 1073 | This function returns the bitwise complement of its argument: the @var{n}th | 1073 | This function returns the bitwise complement of its argument: the @var{n}th |
| 1074 | bit is one in the result if, and only if, the @var{n}th bit is zero in | 1074 | bit is one in the result if, and only if, the @var{n}th bit is zero in |
| 1075 | @var{integer}, and vice-versa. | 1075 | @var{integer}, and vice-versa. The result equals @minus{}1 @minus{} |
| 1076 | @var{integer}. | ||
| 1076 | 1077 | ||
| 1077 | @example | 1078 | @example |
| 1078 | (lognot 5) | 1079 | (lognot 5) |