diff options
| author | Paul Eggert | 2018-08-21 16:06:58 -0700 |
|---|---|---|
| committer | Paul Eggert | 2018-08-21 19:24:38 -0700 |
| commit | c79444c5b7b8ead1ea98ed5603bf2a49c13dbf16 (patch) | |
| tree | 2b36ffd2d444b3fcbf0f6e59a8b4ca4ef69ba5f4 /doc/lispref/objects.texi | |
| parent | f8069952abf147d090032ad6b941a728cad2c496 (diff) | |
| download | emacs-c79444c5b7b8ead1ea98ed5603bf2a49c13dbf16.tar.gz emacs-c79444c5b7b8ead1ea98ed5603bf2a49c13dbf16.zip | |
Move bignump, fixnump from C to Lisp
* doc/lispref/objects.texi (Integer Type): Mention
most-negative-fixnum and most-positive-fixnum as alternatives
to fixnump and bignump.
* lisp/subr.el (fixnump, bignump): Now written in Lisp.
* src/data.c (Ffixnump, Fbignump): No longer written in C,
as these new functions are not crucial for performance.
Diffstat (limited to 'doc/lispref/objects.texi')
| -rw-r--r-- | doc/lispref/objects.texi | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/doc/lispref/objects.texi b/doc/lispref/objects.texi index 8c92de123c2..a0940032eee 100644 --- a/doc/lispref/objects.texi +++ b/doc/lispref/objects.texi | |||
| @@ -190,9 +190,10 @@ but many machines provide a wider range. | |||
| 190 | fixnum will return a bignum instead. | 190 | fixnum will return a bignum instead. |
| 191 | 191 | ||
| 192 | Fixnums can be compared with @code{eq}, but bignums require | 192 | Fixnums can be compared with @code{eq}, but bignums require |
| 193 | @code{eql} or @code{=}. The @code{fixnump} predicate can be used to | 193 | @code{eql} or @code{=}. To test whether an integer is a fixnum or a |
| 194 | detect such small integers, and @code{bignump} can be used to detect | 194 | bignum, you can compare it to @code{most-negative-fixnum} and |
| 195 | large integers. | 195 | @code{most-positive-fixnum}, or you can use the convenience predicates |
| 196 | @code{fixnump} and @code{bignump} on any object. | ||
| 196 | 197 | ||
| 197 | The read syntax for integers is a sequence of (base ten) digits with an | 198 | The read syntax for integers is a sequence of (base ten) digits with an |
| 198 | optional sign at the beginning and an optional period at the end. The | 199 | optional sign at the beginning and an optional period at the end. The |