cb_hashfun.h 521 B

123456789101112131415161718192021222324252627
  1. /*
  2. * SPDX-License-Identifier: Apache-2.0
  3. *
  4. * Change Logs:
  5. * Date Author Notes
  6. * 2022-03-16 tyx first implementation
  7. */
  8. #ifndef CB_HASHFUN_H_
  9. #define CB_HASHFUN_H_
  10. #include "cb_def.h"
  11. #ifdef __cplusplus
  12. extern "C" {
  13. #endif
  14. cb_uint32_t cb_hash_string(const void *k);
  15. long cb_hash_string_cmp(const void *d, const void *s);
  16. cb_uint32_t cb_hash_uint32(const void *k);
  17. long cb_hash_uint32_cmp(const void *d, const void *s);
  18. #ifdef __cplusplus
  19. }
  20. #endif
  21. #endif