acl/lib_acl/include/stdlib/acl_hash.h

35 lines
992 B
C
Raw Normal View History

#ifndef ACL_HASH_INCLUD_H
2014-11-19 00:25:21 +08:00
#define ACL_HASH_INCLUD_H
#ifdef __cplusplus
extern "C" {
#endif
#include "acl_define.h"
#include <stdlib.h>
/**
* <EFBFBD><EFBFBD>ϣ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ͷ<EFBFBD><EFBFBD><EFBFBD>
* @param buf <EFBFBD><EFBFBD>Ҫ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϣ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݻ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ַ
* @param len buf <EFBFBD>ij<EFBFBD><EFBFBD><EFBFBD>
2014-11-19 00:25:21 +08:00
*/
typedef unsigned (*ACL_HASH_FN)(const void *buf, size_t len);
2014-11-19 00:25:21 +08:00
ACL_API unsigned short acl_hash_crc16(const void *buf, size_t len);
ACL_API unsigned acl_hash_crc32(const void *buf, size_t len);
ACL_API acl_uint64 acl_hash_crc64(const void *buf, size_t len);
ACL_API unsigned acl_hash_test(const void *buf, size_t len);
ACL_API unsigned acl_hash_bin(const void *buf, size_t len);
ACL_API unsigned acl_hash_func2(const void *buf, size_t len);
ACL_API unsigned acl_hash_func3(const void *buf, size_t len);
ACL_API unsigned acl_hash_func4(const void *buf, size_t len);
ACL_API unsigned acl_hash_func5(const void *buf, size_t len);
ACL_API unsigned acl_hash_func6(const void *buf, size_t len);
2014-11-19 00:25:21 +08:00
#ifdef __cplusplus
}
#endif
#endif