Esempio n. 1
0
static unsigned long
unshifted_pixel_hash(const HashTable h, const void *p)
{
   Pixel *pixel=(Pixel *)&p;
   unsigned long hash=PIXEL_HASH(pixel->c.r,
                                 pixel->c.g,
                                 pixel->c.b);
   return hash;
}
Esempio n. 2
0
static uint32_t
unshifted_pixel_hash(const HashTable *h, const Pixel pixel)
{
   return PIXEL_HASH(pixel.c.r, pixel.c.g, pixel.c.b);
}