0.9.2.42:
[sbcl.git] / src / runtime / fixnump.h
1 /*
2  * This software is part of the SBCL system. See the README file for
3  * more information.
4  *
5  * This software is derived from the CMU CL system, which was
6  * written at Carnegie Mellon University and released into the
7  * public domain. The software is in the public domain and is
8  * provided with absolutely no warranty. See the COPYING and CREDITS
9  * files for more information.
10  */
11
12 #ifndef _FIXNUMP_H
13 #define _FIXNUMP_H
14
15 static inline int fixnump(lispobj obj) {
16     return((obj &
17             (LOWTAG_MASK &
18              (~(EVEN_FIXNUM_LOWTAG|ODD_FIXNUM_LOWTAG))))
19            == 0);
20 }
21
22 #endif