static int _community_day_key_hash(const void *key, int key_length) { const Community_Day *d1 = key; int day; day = d1->day + d1->month * 31 + d1->year * 31 * 12; return eina_hash_int32(&day, 4); }
static int _evas_common_scalecache_key_hash(const void *key, int key_length EINA_UNUSED) { const ScaleitemKey *skey; unsigned int tohash; int r; skey = key; tohash = (skey->src_x ^ skey->src_y) ^ ((skey->src_w ^ skey->src_h) ^ (skey->dst_w ^ skey->dst_h)); r = eina_hash_int32(&tohash, sizeof (int)); return r; }