Add AES2501 driver
[libfprint.git] / libfprint / nbis / include / defs.h
blob1e982d04af0d9c64b98cb00bcfb84fa127f7329b
1 /*******************************************************************************
3 License:
4 This software was developed at the National Institute of Standards and
5 Technology (NIST) by employees of the Federal Government in the course
6 of their official duties. Pursuant to title 17 Section 105 of the
7 United States Code, this software is not subject to copyright protection
8 and is in the public domain. NIST assumes no responsibility whatsoever for
9 its use by other parties, and makes no guarantees, expressed or implied,
10 about its quality, reliability, or any other characteristic.
12 Disclaimer:
13 This software was developed to promote biometric standards and biometric
14 technology testing for the Federal Government in accordance with the USA
15 PATRIOT Act and the Enhanced Border Security and Visa Entry Reform Act.
16 Specific hardware and software products identified in this software were used
17 in order to perform the software development. In no case does such
18 identification imply recommendation or endorsement by the National Institute
19 of Standards and Technology, nor does it imply that the products and equipment
20 identified are necessarily the best available for the purpose.
22 *******************************************************************************/
24 #ifndef _DEFS_H
25 #define _DEFS_H
27 /*********************************************************************/
28 /* General Purpose Defines */
29 /*********************************************************************/
30 #ifndef True
31 #define True 1
32 #define False 0
33 #endif
34 #ifndef TRUE
35 #define TRUE True
36 #define FALSE False
37 #endif
38 #define Yes True
39 #define No False
40 #define Empty NULL
41 #ifndef None
42 #define None -1
43 #endif
44 #ifndef FOUND
45 #define FOUND 1
46 #endif
47 #define NOT_FOUND_NEG -1
48 #define EOL EOF
49 #ifndef DEG2RAD
50 #define DEG2RAD (double)(57.29578)
51 #endif
52 #define max(a, b) ((a) > (b) ? (a) : (b))
53 #define min(a, b) ((a) < (b) ? (a) : (b))
54 #define sround(x) ((int) (((x)<0) ? (x)-0.5 : (x)+0.5))
55 #define sround_uint(x) ((unsigned int) (((x)<0) ? (x)-0.5 : (x)+0.5))
56 #define xor(a, b) (!(a && b) && (a || b))
57 #define align_to_16(_v_) ((((_v_)+15)>>4)<<4)
58 #define align_to_32(_v_) ((((_v_)+31)>>5)<<5)
59 #ifndef CHUNKS
60 #define CHUNKS 100
61 #endif
63 #endif /* !_DEFS_H */