BRL-CAD
bu_internals.h
Go to the documentation of this file.
1 /* B U _ I N T E R N A L S . H
2  * BRL-CAD
3  *
4  * Copyright (c) 2014 United States Government as represented by the
5  * U.S. Army Research Laboratory.
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Lesser General Public License
9  * version 2.1 as published by the Free Software Foundation.
10  *
11  * This library is distributed in the hope that it will be useful, but
12  * WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this file; see the file named COPYING for more
18  * information.
19  */
20 
21 #ifndef LIBBU_BU_INTERNALS_H
22 #define LIBBU_BU_INTERNALS_H seen
23 
24 /* private constants */
25 
26 /**
27  * some handy literals for bit twiddling
28  */
29 #define BITS_PER_BYTE 8
30 #define BITS_PER_HEXCHAR 4
31 #define HEXCHARS_PER_BYTE 2
32 #define HEX_BASE 16
33 #define BINARY_BASE 2
34 
35 #endif /* LIBBU_BU_INTERNALS_H */
36 
37 /*
38  * Local Variables:
39  * mode: C
40  * tab-width: 8
41  * indent-tabs-mode: t
42  * c-file-style: "stroustrup"
43  * End:
44  * ex: shiftwidth=4 tabstop=8
45  */