summaryrefslogtreecommitdiff
path: root/doc/lispref/numbers.texi
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2018-08-21 13:05:31 -0400
committerGlenn Morris <rgm@gnu.org>2018-08-21 13:05:31 -0400
commitad31afc35be2c64863a03b8f3995847332870cb6 (patch)
treefd6154f5a36feea01d462e595473100c3c83044b /doc/lispref/numbers.texi
parentb2ffcdeae66719d886c9410ac07f6e0a4fe4459e (diff)
downloademacs-ad31afc35be2c64863a03b8f3995847332870cb6.tar.gz
Restore compatibility with Texinfo < 6
* doc/lispref/numbers.texi (Integer Basics, Bitwise Operations): Don't use Texinfo 6.0's "@sup" command.
Diffstat (limited to 'doc/lispref/numbers.texi')
-rw-r--r--doc/lispref/numbers.texi20
1 files changed, 16 insertions, 4 deletions
diff --git a/doc/lispref/numbers.texi b/doc/lispref/numbers.texi
index dd78bce4c90..a8150478613 100644
--- a/doc/lispref/numbers.texi
+++ b/doc/lispref/numbers.texi
@@ -193,8 +193,14 @@ on 64-bit platforms.
@defvar integer-width
The value of this variable is a nonnegative integer that is an upper
bound on the number of bits in a bignum. Integers outside the fixnum
-range are limited to absolute values less than 2@sup{@var{n}}, where
-@var{n} is this variable's value. Attempts to create bignums outside
+range are limited to absolute values less than
+@ifnottex
+2**@var{n},
+@end ifnottex
+@tex
+@math{2^{n}},
+@end tex
+where @var{n} is this variable's value. Attempts to create bignums outside
this range result in an integer overflow error. Setting this variable
to zero disables creation of bignums; setting it to a large number can
cause Emacs to consume large quantities of memory if a computation
@@ -857,8 +863,14 @@ reproducing the same pattern moved over.
to the left @var{count} places, or to the right if @var{count} is
negative. Left shifts introduce zero bits on the right; right shifts
discard the rightmost bits. Considered as an integer operation,
-@code{ash} multiplies @var{integer1} by 2@sup{@var{count}} and then
-converts the result to an integer by rounding downward, toward
+@code{ash} multiplies @var{integer1} by
+@ifnottex
+2**@var{count},
+@end ifnottex
+@tex
+@math{2^{count}},
+@end tex
+and then converts the result to an integer by rounding downward, toward
minus infinity.
Here are examples of @code{ash}, shifting a pattern of bits one place