Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
dc8e8b07
Commit
dc8e8b07
authored
Oct 06, 2001
by
Gerd Moellmann
Browse files
(MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM)
(FIXNUM_OVERFLOW_P): New macros.
parent
9542e3f5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
src/lisp.h
src/lisp.h
+14
-0
No files found.
src/lisp.h
View file @
dc8e8b07
...
...
@@ -387,6 +387,10 @@ extern size_t pure_size;
#define make_number(N) \
((((EMACS_INT) (N)) & VALMASK) | ((EMACS_INT) Lisp_Int) << VALBITS)
#define make_fixnum(x) make_number (x)
#define MOST_NEGATIVE_FIXNUM ((EMACS_INT) 1 << (VALBITS - 1))
#define MOST_POSITIVE_FIXNUM (MOST_NEGATIVE_FIXNUM - 1)
/* During garbage collection, XGCTYPE must be used for extracting types
so that the mark bit is ignored. XMARKBIT accesses the markbit.
Markbits are used only in particular slots of particular structure types.
...
...
@@ -468,6 +472,16 @@ extern Lisp_Object make_number ();
#endif /* NO_UNION_TYPE */
/* Largest and smallest representable fixnum values. */
#define MOST_NEGATIVE_FIXNUM ((EMACS_INT) 1 << (VALBITS - 1))
#define MOST_POSITIVE_FIXNUM (MOST_NEGATIVE_FIXNUM - 1)
/* Value is non-zero if C integer I doesn't fit into a Lisp fixnum. */
#define FIXNUM_OVERFLOW_P(i) \
((i) > MOST_POSITIVE_FIXNUM || (i) < MOST_NEGATIVE_FIXNUM)
/* Extract a value or address from a Lisp_Object. */
#define XCONS(a) (eassert (GC_CONSP(a)),(struct Lisp_Cons *) XPNTR(a))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment