lib/ccmap.c
/* Decrement the count associated with 'hash' in the bucket identified by
 * 'h'. Return the OLD count if successful, or 0. */
Decrement the count associated with 'hash' in the bucket identified by
'h'. Return the OLD count if successful, or 0.
Decrement the count associated with ' hash ' in the bucket identified by ' h ' . Return the OLD count if successful or 0 .
static uint32_t
ccmap_dec__(struct ccmap_impl *impl, uint32_t hash, uint32_t h)
{
    struct ccmap_bucket *b = &impl->buckets[h & impl->mask];
    uint32_t count;
    int slot = ccmap_find_slot_protected(b, hash, &count);
    if (slot < 0) {
        return 0;
    }
    ccmap_set_bucket(b, slot, count - 1, hash);
    return count;
}
static uint32_t ccmap_dec__ ( struct ccmap_impl * impl , uint32_t hash , uint32_t h ) { struct ccmap_bucket * b = & impl -> buckets [ h & impl -> mask ] ; uint32_t count ; int slot = ccmap_find_slot_protected ( b , hash , & count ) ; if ( slot < 0 ) { return 0 ; } ccmap_set_bucket ( b , slot , count - 1 , hash ) ; return count ; }
Decrement the count associated with 'hash' in the bucket identified by
 'h'.
Decrement the count associated with ' hash ' in the bucket identified by ' h ' .