acl/lib_acl/include/stdlib/acl_hash.h
zsxxsz cc05b877a2 first commit acl to github
first commit acl to github
2013-08-18 17:42:25 +08:00

34 lines
894 B
C

#ifndef __ACL_HASH_INCLUD_H__
#define __ACL_HASH_INCLUD_H__
#ifdef __cplusplus
extern "C" {
#endif
#include "acl_define.h"
#include <stdlib.h>
/**
* 哈希函数类型定义
* @param buffer 需要被哈希的字符串
* @param len s 的长度
*/
typedef unsigned (*ACL_HASH_FN)(const void *buffer, size_t len);
ACL_API unsigned acl_hash_crc32(const void *key, size_t len);
ACL_API acl_uint64 acl_hash_crc64(const void *key, size_t len);
ACL_API unsigned acl_hash_test(const void *key, size_t len);
ACL_API unsigned acl_hash_bin(const void *key, size_t len);
ACL_API unsigned acl_hash_func2(const void *key, size_t len);
ACL_API unsigned acl_hash_func3(const void *key, size_t len);
ACL_API unsigned acl_hash_func4(const void *key, size_t len);
ACL_API unsigned acl_hash_func5(const void *key, size_t len);
ACL_API unsigned acl_hash_func6(const void *key, size_t len);
#ifdef __cplusplus
}
#endif
#endif