forked from enlightenment/efl
parent
74ece51f0b
commit
21f6be2f66
|
@ -121,8 +121,8 @@ EAPI int eina_hash_superfast(const char *key, int len) EINA_ARG_NONNULL(1);
|
|||
static inline int eina_hash_djb2(const char *key, int len) EINA_ARG_NONNULL(1);
|
||||
|
||||
/* Hash function from http://www.concentric.net/~Ttwang/tech/inthash.htm */
|
||||
static inline int eina_hash_int32(unsigned int *pkey, int len) EINA_ARG_NONNULL(1);
|
||||
static inline int eina_hash_int64(unsigned long int *pkey, int len) EINA_ARG_NONNULL(1);
|
||||
static inline int eina_hash_int32(const unsigned int *pkey, int len) EINA_ARG_NONNULL(1);
|
||||
static inline int eina_hash_int64(const unsigned long int *pkey, int len) EINA_ARG_NONNULL(1);
|
||||
|
||||
#include "eina_inline_hash.x"
|
||||
|
||||
|
|
|
@ -54,7 +54,7 @@ eina_hash_djb2_len(const char *key, int *plen)
|
|||
}
|
||||
|
||||
static inline int
|
||||
eina_hash_int32(unsigned int *pkey, int len)
|
||||
eina_hash_int32(const unsigned int *pkey, int len)
|
||||
{
|
||||
unsigned int key = *pkey;
|
||||
|
||||
|
@ -70,7 +70,7 @@ eina_hash_int32(unsigned int *pkey, int len)
|
|||
}
|
||||
|
||||
static inline int
|
||||
eina_hash_int64(unsigned long int *pkey, int len)
|
||||
eina_hash_int64(const unsigned long int *pkey, int len)
|
||||
{
|
||||
unsigned long int key = *pkey;
|
||||
|
||||
|
|
Loading…
Reference in New Issue