diff options
author | Carsten Haitzler <raster@rasterman.com> | 2012-11-13 23:52:18 +0000 |
---|---|---|
committer | Carsten Haitzler <raster@rasterman.com> | 2012-11-13 23:52:18 +0000 |
commit | 9bfde157889c99dfdb1778276f3e63fde5a1906c (patch) | |
tree | 4b825dc642cb6eb9a060e54bf8d69288fbee4904 /src/lib/eet_utils.c | |
parent | 87b2de8a2160ed48e5a267b3954755d0c04ceec5 (diff) | |
download | eet-master.tar.gz |
move libs already in EFL into... IN-EFL - this will stop/prevent/limitmaster
thnigs like people using them and patching them, etc.
SVN revision: 79255
Diffstat (limited to 'src/lib/eet_utils.c')
-rw-r--r-- | src/lib/eet_utils.c | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/src/lib/eet_utils.c b/src/lib/eet_utils.c deleted file mode 100644 index b04ad1b..0000000 --- a/src/lib/eet_utils.c +++ /dev/null @@ -1,36 +0,0 @@ -#ifdef HAVE_CONFIG_H -# include <config.h> -#endif /* ifdef HAVE_CONFIG_H */ - -#include <stdio.h> -#include <math.h> - -#include "Eet.h" -#include "Eet_private.h" - -int -_eet_hash_gen(const char *key, - int hash_size) -{ - int hash_num = 0; - int value, i; - int mask; - unsigned char *ptr; - - /* no string - index 0 */ - if (!key) - return 0; - - /* calc hash num */ - for (i = 0, ptr = (unsigned char *)key, value = (int)(*ptr); - value; - ptr++, i++, value = (int)(*ptr)) - hash_num ^= (value | (value << 8)) >> (i & 0x7); - - /* mask it */ - mask = (1 << hash_size) - 1; - hash_num &= mask; - /* return it */ - return hash_num; -} - |