diff options
| author | Glenn Morris | 2010-03-02 19:50:15 -0800 |
|---|---|---|
| committer | Glenn Morris | 2010-03-02 19:50:15 -0800 |
| commit | 1ddd6622975d5bfeb6aceb2956f9ca8ca4a8b119 (patch) | |
| tree | aba6f39bb46b00c3d3671a0fc776cef23068affd /doc/lispref/objects.texi | |
| parent | 855dc98c537fad49ddc6ef94b0a881a5feb2ff65 (diff) | |
| download | emacs-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.texi | 16 |
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 |
| 169 | 268435455 (29 bits; i.e., | 169 | 536870911 (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 |
| 176 | to | 176 | to |
| 177 | @ifnottex | 177 | @ifnottex |
| 178 | 2**28 - 1) | 178 | 2**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 |
| 183 | on most machines. (Some machines may provide a wider range.) It is | 183 | on most machines. (Some machines may provide a wider range.) It is |
| 184 | important to note that the Emacs Lisp arithmetic functions do not check | 184 | important to note that the Emacs Lisp arithmetic functions do not check |
| 185 | for overflow. Thus @code{(1+ 268435455)} is @minus{}268435456 on most | 185 | for overflow. Thus @code{(1+ 536870911)} is @minus{}536870912 on most |
| 186 | machines. | 186 | machines. |
| 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{.}. | |||
| 196 | 1 ; @r{The integer 1.} | 196 | 1 ; @r{The integer 1.} |
| 197 | 1. ; @r{Also the integer 1.} | 197 | 1. ; @r{Also the integer 1.} |
| 198 | +1 ; @r{Also the integer 1.} | 198 | +1 ; @r{Also the integer 1.} |
| 199 | 536870913 ; @r{Also the integer 1 on a 29-bit implementation.} | 199 | 1073741825 ; @r{Also the integer 1 on a 30-bit implementation.} |
| 200 | @end group | 200 | @end group |
| 201 | @end example | 201 | @end example |
| 202 | 202 | ||