lib/ccmap.c
/* Searches 'b' for a node with the given 'hash'.  If it finds one, increments
 * the associated count by 'inc' and returns the new value. Otherwise returns
 * 0. */
Searches 'b' for a node with the given 'hash'.  If it finds one, increments
the associated count by 'inc' and returns the new value. Otherwise returns
0.
Searches ' b ' for a node with the given ' hash ' . If it finds one increments the associated count by ' inc ' and returns the new value . Otherwise returns 0 .
static uint32_t
ccmap_inc_bucket_existing(struct ccmap_bucket *b, uint32_t hash, uint32_t inc)
{
    uint32_t count;
    int i = ccmap_find_slot_protected(b, hash, &count);
    if (i < 0) {
        return 0;
    }
    count += inc;
    ccmap_set_bucket(b, i, count, hash);
    return count;
}
static uint32_t ccmap_inc_bucket_existing ( struct ccmap_bucket * b , uint32_t hash , uint32_t inc ) { uint32_t count ; int i = ccmap_find_slot_protected ( b , hash , & count ) ; if ( i < 0 ) { return 0 ; } count += inc ; ccmap_set_bucket ( b , i , count , hash ) ; return count ; }
Searches 'b' for a node with the given 'hash'.
Searches ' b ' for a node with the given ' hash ' .