2004-12-23 15:16:30 +02:00
|
|
|
#ifndef __CMPH_TYPES_H__
|
|
|
|
#define __CMPH_TYPES_H__
|
|
|
|
|
2009-03-15 01:24:05 +02:00
|
|
|
typedef char cmph_int8;
|
2005-01-18 23:06:08 +02:00
|
|
|
typedef unsigned char cmph_uint8;
|
2009-03-15 01:24:05 +02:00
|
|
|
|
|
|
|
typedef short cmph_int16;
|
2005-01-18 23:06:08 +02:00
|
|
|
typedef unsigned short cmph_uint16;
|
2009-03-15 01:24:05 +02:00
|
|
|
|
|
|
|
typedef int cmph_int32;
|
2005-01-18 23:06:08 +02:00
|
|
|
typedef unsigned int cmph_uint32;
|
2004-12-23 15:16:30 +02:00
|
|
|
|
2008-04-12 09:17:21 +03:00
|
|
|
#if defined(__ia64) || defined(__x86_64__)
|
2009-06-12 05:10:39 +03:00
|
|
|
/** \typedef long cmph_int64;
|
2008-03-29 03:48:15 +02:00
|
|
|
* \brief 64-bit integer for a 64-bit achitecture.
|
|
|
|
*/
|
|
|
|
typedef long cmph_int64;
|
2009-06-12 05:10:39 +03:00
|
|
|
|
2008-03-29 03:48:15 +02:00
|
|
|
/** \typedef unsigned long cmph_uint64;
|
|
|
|
* \brief Unsigned 64-bit integer for a 64-bit achitecture.
|
|
|
|
*/
|
|
|
|
typedef unsigned long cmph_uint64;
|
|
|
|
#else
|
|
|
|
/** \typedef long long cmph_int64;
|
|
|
|
* \brief 64-bit integer for a 32-bit achitecture.
|
|
|
|
*/
|
|
|
|
typedef long long cmph_int64;
|
|
|
|
|
|
|
|
/** \typedef unsigned long long cmph_uint64;
|
|
|
|
* \brief Unsigned 64-bit integer for a 32-bit achitecture.
|
|
|
|
*/
|
|
|
|
typedef unsigned long long cmph_uint64;
|
|
|
|
#endif
|
|
|
|
|
2008-03-23 02:46:34 +02:00
|
|
|
typedef enum { CMPH_HASH_JENKINS, CMPH_HASH_COUNT } CMPH_HASH;
|
2005-01-18 23:06:08 +02:00
|
|
|
extern const char *cmph_hash_names[];
|
2008-04-12 09:17:21 +03:00
|
|
|
typedef enum { CMPH_BMZ, CMPH_BMZ8, CMPH_CHM, CMPH_BRZ, CMPH_FCH,
|
2009-07-05 06:17:36 +03:00
|
|
|
CMPH_BDZ, CMPH_BDZ_PH,
|
|
|
|
CMPH_CHD_PH, CMPH_CHD, CMPH_COUNT } CMPH_ALGO;
|
2005-01-18 23:06:08 +02:00
|
|
|
extern const char *cmph_names[];
|
2004-12-23 15:16:30 +02:00
|
|
|
|
|
|
|
#endif
|