nxs_hash.h

00001 
00017 #ifndef NXS_HEADERS_HASH
00018 #define NXS_HEADERS_HASH
00019 
00020 #ifdef HAVE_CONFIG_H
00021 #include "config.h"
00022 #endif
00023 
00024 #include <inttypes.h>
00025 #include <stddef.h>
00026 
00027 /* TYPES */
00049 #ifdef UINT32_MAX
00050     typedef      uint32_t   nxs_hash_t;
00051     #define NXS_HASH_T_MAX               UINT32_MAX
00052     #define NXS_HASH_T_FORMAT            PRIu32
00053     #define NXS_HASH_T_FORMAT_HEX        PRIx32
00054 #else
00055     typedef uint_fast32_t   nxs_hash_t;
00056     #define NXS_HASH_T_MAX          UINT_FAST32_MAX
00057     #define NXS_HASH_T_FORMAT        PRIuFAST32
00058     #define NXS_HASH_T_FORMAT_HEX    PRIxFAST32
00059 #endif
00060 
00064 typedef nxs_hash_t (*nxs_hash_function)(const void *, size_t);
00065 
00066 /* PUBLIC FUNCTION PROTOTYPES */
00071 nxs_hash_t  hash_lookup3    (const void *data, size_t length);
00072 
00074 #endif

Generated on Thu Dec 20 13:42:46 2007 for NXS Toolkit by  doxygen 1.5.4