9681520e24fa361be9db8404500c5f867fc29fc9
[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 {
17     return((obj &
18             (LOWTAG_MASK &
19              (~(EVEN_FIXNUM_LOWTAG|ODD_FIXNUM_LOWTAG))))
20            == 0);
21 }
22
23 #endif