aboutsummaryrefslogtreecommitdiffstats
path: root/doc/lispref/objects.texi
diff options
context:
space:
mode:
authorGlenn Morris2010-03-02 19:50:15 -0800
committerGlenn Morris2010-03-02 19:50:15 -0800
commit1ddd6622975d5bfeb6aceb2956f9ca8ca4a8b119 (patch)
treeaba6f39bb46b00c3d3671a0fc776cef23068affd /doc/lispref/objects.texi
parent855dc98c537fad49ddc6ef94b0a881a5feb2ff65 (diff)
downloademacs-1ddd6622975d5bfeb6aceb2956f9ca8ca4a8b119.tar.gz
emacs-1ddd6622975d5bfeb6aceb2956f9ca8ca4a8b119.zip
Update Lispref for 30-bit integers.
* numbers.texi (Integer Basics, Bitwise Operations): * objects.texi (Integer Type): Update for integers now being 30-bit.
Diffstat (limited to 'doc/lispref/objects.texi')
-rw-r--r--doc/lispref/objects.texi16
1 files changed, 8 insertions, 8 deletions
diff --git a/doc/lispref/objects.texi b/doc/lispref/objects.texi
index d6e84ee2cca..26c17f09f0e 100644
--- a/doc/lispref/objects.texi
+++ b/doc/lispref/objects.texi
@@ -165,24 +165,24 @@ latter are unique to Emacs Lisp.
165@node Integer Type 165@node Integer Type
166@subsection Integer Type 166@subsection Integer Type
167 167
168 The range of values for integers in Emacs Lisp is @minus{}268435456 to 168 The range of values for integers in Emacs Lisp is @minus{}536870912 to
169268435455 (29 bits; i.e., 169536870911 (30 bits; i.e.,
170@ifnottex 170@ifnottex
171-2**28 171-2**29
172@end ifnottex 172@end ifnottex
173@tex 173@tex
174@math{-2^{28}} 174@math{-2^{29}}
175@end tex 175@end tex
176to 176to
177@ifnottex 177@ifnottex
1782**28 - 1) 1782**29 - 1)
179@end ifnottex 179@end ifnottex
180@tex 180@tex
181@math{2^{28}-1}) 181@math{2^{29}-1})
182@end tex 182@end tex
183on most machines. (Some machines may provide a wider range.) It is 183on most machines. (Some machines may provide a wider range.) It is
184important to note that the Emacs Lisp arithmetic functions do not check 184important to note that the Emacs Lisp arithmetic functions do not check
185for overflow. Thus @code{(1+ 268435455)} is @minus{}268435456 on most 185for overflow. Thus @code{(1+ 536870911)} is @minus{}536870912 on most
186machines. 186machines.
187 187
188 The read syntax for integers is a sequence of (base ten) digits with an 188 The read syntax for integers is a sequence of (base ten) digits with an
@@ -196,7 +196,7 @@ leading @samp{+} or a final @samp{.}.
1961 ; @r{The integer 1.} 1961 ; @r{The integer 1.}
1971. ; @r{Also the integer 1.} 1971. ; @r{Also the integer 1.}
198+1 ; @r{Also the integer 1.} 198+1 ; @r{Also the integer 1.}
199536870913 ; @r{Also the integer 1 on a 29-bit implementation.} 1991073741825 ; @r{Also the integer 1 on a 30-bit implementation.}
200@end group 200@end group
201@end example 201@end example
202 202