]>
cvs.zerfleddert.de Git - proxmark3-svn/blob - client/reveng/config.h
2 * Greg Cook, 9/Apr/2015
5 /* CRC RevEng, an arbitrary-precision CRC calculator and algorithm finder
6 * Copyright (C) 2010, 2011, 2012, 2013, 2014, 2015 Gregory Cook
8 * This file is part of CRC RevEng.
10 * CRC RevEng is free software: you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation, either version 3 of the License, or
13 * (at your option) any later version.
15 * CRC RevEng is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with CRC RevEng. If not, see <http://www.gnu.org/licenses/>.
27 /*****************************************
29 * Start of user configuration options *
31 *****************************************/
33 /* A type to contain polynomial coefficient bitmaps.
34 * Can be changed to 'unsigned long long' for some extended compilers.
35 * Adjust BMP_C(), BMP_BIT and BMP_SUB below if this is changed.
38 #define BMP_T unsigned long
40 /* Creates an appropriate numeric constant for bmp_t.
41 * If the underlying type is 'unsigned long long', change UL to ULL.
44 #define BMP_C(n) (n##UL)
46 /* Define BMPMACRO to turn the definitions of the size of a bmp_t into
47 * compile-time constants. This improves efficiency but makes the code
51 /* #define BMPMACRO 1 */
53 /* Some enterprise users may wish to disable the -F switch to minimise CPU
54 * usage. To do this, define the macro NOFORCE.
57 /* #define NOFORCE 1 */
59 /* Define PRESETS to compile CRC RevEng with the preset models from the
60 * CRC Catalogue. This implies BMPMACRO and so makes the code platform-
69 /* Macros defining the size of a bmp_t.
70 * Their values only matter if PRESETS and/or BMPMACRO are defined, in
71 * which case edit the macros below to suit your architecture.
72 * Otherwise, BMP_BIT and BMP_SUB will be redefined as aliases of bmpbit
73 * and bmpsub, global objects initialised at run time.
76 /* Size in bits of a bmp_t. Not necessarily a power of two. */
80 /* The highest power of two that is strictly less than BMP_BIT.
81 * Initialises the index of a binary search for set bits in a bmp_t.
86 /*****************************************
88 * End of user configuration options *
90 *****************************************/