turbonss/src/cmph_types.h

38 lines
1.1 KiB
C
Raw Normal View History

2004-12-23 15:16:30 +02:00
#ifndef __CMPH_TYPES_H__
#define __CMPH_TYPES_H__
2005-01-18 23:06:08 +02:00
typedef unsigned char cmph_uint8;
typedef unsigned short cmph_uint16;
typedef unsigned int cmph_uint32;
2005-07-29 21:29:30 +03:00
typedef float cmph_float32;
2004-12-23 15:16:30 +02:00
2008-03-29 03:48:15 +02:00
#if defined (__ia64) || defined (__x86_64__)
/** \typedef long cmph_int64;
* \brief 64-bit integer for a 64-bit achitecture.
*/
typedef long cmph_int64;
/** \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-03-25 22:20:55 +02:00
typedef enum { CMPH_BMZ, CMPH_BMZ8, CMPH_CHM, CMPH_BRZ, CMPH_FCH,
CMPH_BDZ, CMPH_BDZ_PH, CMPH_COUNT } CMPH_ALGO; /* included -- Fabiano */
2005-01-18 23:06:08 +02:00
extern const char *cmph_names[];
2004-12-23 15:16:30 +02:00
#endif