diff options
Diffstat (limited to 'doc/misc')
| -rw-r--r-- | doc/misc/calc.texi | 6 | ||||
| -rw-r--r-- | doc/misc/cl.texi | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/doc/misc/calc.texi b/doc/misc/calc.texi index b1b38620fff..98ef6daa2c1 100644 --- a/doc/misc/calc.texi +++ b/doc/misc/calc.texi | |||
| @@ -32717,7 +32717,7 @@ create an intermediate set. | |||
| 32717 | (while (> n 0) | 32717 | (while (> n 0) |
| 32718 | (if (oddp n) | 32718 | (if (oddp n) |
| 32719 | (setq count (1+ count))) | 32719 | (setq count (1+ count))) |
| 32720 | (setq n (lsh n -1))) | 32720 | (setq n (ash n -1))) |
| 32721 | count)) | 32721 | count)) |
| 32722 | @end smallexample | 32722 | @end smallexample |
| 32723 | 32723 | ||
| @@ -32761,7 +32761,7 @@ routines are especially fast when dividing by an integer less than | |||
| 32761 | (let ((count 0)) | 32761 | (let ((count 0)) |
| 32762 | (while (> n 0) | 32762 | (while (> n 0) |
| 32763 | (setq count (+ count (logand n 1)) | 32763 | (setq count (+ count (logand n 1)) |
| 32764 | n (lsh n -1))) | 32764 | n (ash n -1))) |
| 32765 | count)) | 32765 | count)) |
| 32766 | @end smallexample | 32766 | @end smallexample |
| 32767 | 32767 | ||
| @@ -32774,7 +32774,7 @@ uses. | |||
| 32774 | 32774 | ||
| 32775 | The @code{idivmod} function does an integer division, returning both | 32775 | The @code{idivmod} function does an integer division, returning both |
| 32776 | the quotient and the remainder at once. Again, note that while it | 32776 | the quotient and the remainder at once. Again, note that while it |
| 32777 | might seem that @samp{(logand n 511)} and @samp{(lsh n -9)} are | 32777 | might seem that @samp{(logand n 511)} and @samp{(ash n -9)} are |
| 32778 | more efficient ways to split off the bottom nine bits of @code{n}, | 32778 | more efficient ways to split off the bottom nine bits of @code{n}, |
| 32779 | actually they are less efficient because each operation is really | 32779 | actually they are less efficient because each operation is really |
| 32780 | a division by 512 in disguise; @code{idivmod} allows us to do the | 32780 | a division by 512 in disguise; @code{idivmod} allows us to do the |
diff --git a/doc/misc/cl.texi b/doc/misc/cl.texi index 77105d3364e..6985f194213 100644 --- a/doc/misc/cl.texi +++ b/doc/misc/cl.texi | |||
| @@ -784,7 +784,7 @@ default. Some examples: | |||
| 784 | (cl-deftype null () '(satisfies null)) ; predefined | 784 | (cl-deftype null () '(satisfies null)) ; predefined |
| 785 | (cl-deftype list () '(or null cons)) ; predefined | 785 | (cl-deftype list () '(or null cons)) ; predefined |
| 786 | (cl-deftype unsigned-byte (&optional bits) | 786 | (cl-deftype unsigned-byte (&optional bits) |
| 787 | (list 'integer 0 (if (eq bits '*) bits (1- (lsh 1 bits))))) | 787 | (list 'integer 0 (if (eq bits '*) bits (1- (ash 1 bits))))) |
| 788 | (unsigned-byte 8) @equiv{} (integer 0 255) | 788 | (unsigned-byte 8) @equiv{} (integer 0 255) |
| 789 | (unsigned-byte) @equiv{} (integer 0 *) | 789 | (unsigned-byte) @equiv{} (integer 0 *) |
| 790 | unsigned-byte @equiv{} (integer 0 *) | 790 | unsigned-byte @equiv{} (integer 0 *) |