Commit 1ddd6622 authored by Glenn Morris's avatar Glenn Morris

Update Lispref for 30-bit integers.

* numbers.texi (Integer Basics, Bitwise Operations):
* objects.texi (Integer Type): Update for integers now being 30-bit.
parent 855dc98c
2010-03-03 Glenn Morris <rgm@gnu.org>
* numbers.texi (Integer Basics, Bitwise Operations):
* objects.texi (Integer Type): Update for integers now being 30-bit.
2010-02-27 Chong Yidong <cyd@stupidchicken.com>
* display.texi (Low-Level Font): Document :otf font-spec property.
......
This diff is collapsed.
......@@ -165,24 +165,24 @@ latter are unique to Emacs Lisp.
@node Integer Type
@subsection Integer Type
The range of values for integers in Emacs Lisp is @minus{}268435456 to
268435455 (29 bits; i.e.,
The range of values for integers in Emacs Lisp is @minus{}536870912 to
536870911 (30 bits; i.e.,
@ifnottex
-2**28
-2**29
@end ifnottex
@tex
@math{-2^{28}}
@math{-2^{29}}
@end tex
to
@ifnottex
2**28 - 1)
2**29 - 1)
@end ifnottex
@tex
@math{2^{28}-1})
@math{2^{29}-1})
@end tex
on most machines. (Some machines may provide a wider range.) It is
important to note that the Emacs Lisp arithmetic functions do not check
for overflow. Thus @code{(1+ 268435455)} is @minus{}268435456 on most
for overflow. Thus @code{(1+ 536870911)} is @minus{}536870912 on most
machines.
The read syntax for integers is a sequence of (base ten) digits with an
......@@ -196,7 +196,7 @@ leading @samp{+} or a final @samp{.}.
1 ; @r{The integer 1.}
1. ; @r{Also the integer 1.}
+1 ; @r{Also the integer 1.}
536870913 ; @r{Also the integer 1 on a 29-bit implementation.}
1073741825 ; @r{Also the integer 1 on a 30-bit implementation.}
@end group
@end example
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment