lib/ccmap.c
/* returns 0 if not found. Map does not contain zero counts. */
returns 0 if not found. Map does not contain zero counts.
returns 0 if not found . Map does not contain zero counts .
static uint32_t
ccmap_find_in_bucket(const struct ccmap_bucket *bucket, uint32_t hash)
{
    for (int i = 0; i < CCMAP_K; i++) {
        uint64_t node = ccmap_node_get(&bucket->nodes[i]);
        if (ccmap_node_hash(node) == hash) {
            return ccmap_node_count(node);
        }
    }
    return 0;
}
static uint32_t ccmap_find_in_bucket ( const struct ccmap_bucket * bucket , uint32_t hash ) { for ( int i = 0 ; i < CCMAP_K ; i ++ ) { uint64_t node = ccmap_node_get ( & bucket -> nodes [ i ] ) ; if ( ccmap_node_hash ( node ) == hash ) { return ccmap_node_count ( node ) ; } } return 0 ; }
returns 0 if not found.
returns 0 if not found .