1 #ifndef __CMPH_TYPES_H__ 2 #define __CMPH_TYPES_H__ 3 4 typedef char cmph_int8; 5 typedef unsigned char cmph_uint8; 6 7 typedef short cmph_int16; 8 typedef unsigned short cmph_uint16; 9 10 typedef int cmph_int32; 11 typedef unsigned int cmph_uint32; 12 13 #if defined(__ia64) || defined(__x86_64__) 14 /** \typedef long cmph_int64; 15 * \brief 64-bit integer for a 64-bit achitecture. 16 */ 17 typedef long cmph_int64; 18 19 /** \typedef unsigned long cmph_uint64; 20 * \brief Unsigned 64-bit integer for a 64-bit achitecture. 21 */ 22 typedef unsigned long cmph_uint64; 23 #else 24 /** \typedef long long cmph_int64; 25 * \brief 64-bit integer for a 32-bit achitecture. 26 */ 27 typedef long long cmph_int64; 28 29 /** \typedef unsigned long long cmph_uint64; 30 * \brief Unsigned 64-bit integer for a 32-bit achitecture. 31 */ 32 typedef unsigned long long cmph_uint64; 33 #endif 34 35 typedef enum { CMPH_HASH_JENKINS, CMPH_HASH_COUNT } CMPH_HASH; 36 extern const char *cmph_hash_names[]; 37 typedef enum { CMPH_BMZ, CMPH_BMZ8, CMPH_CHM, CMPH_BRZ, CMPH_FCH, 38 CMPH_BDZ, CMPH_BDZ_PH, 39 CMPH_CHD_PH, CMPH_CHD, CMPH_COUNT } CMPH_ALGO; 40 extern const char *cmph_names[]; 41 42 #endif 43