X-Git-Url: https://git.lttng.org/?p=urcu.git;a=blobdiff_plain;f=rculfhash.c;h=61dc09c3e2fe9408cd3edd3dde44e593e7d1966c;hp=dd49c500db4aa8fa77b859101b3e021ed6ecb96b;hb=4c299dcbef9ad69c2dfbb9b4537b77252fc76d0d;hpb=314558bf8e679784e0c4d5638ffbdfbc72595246 diff --git a/rculfhash.c b/rculfhash.c index dd49c50..61dc09c 100644 --- a/rculfhash.c +++ b/rculfhash.c @@ -549,7 +549,7 @@ void ht_count_add(struct cds_lfht *ht, unsigned long size, unsigned long hash) dbg_printf("add split count %lu\n", split_count); count = uatomic_add_return(&ht->count, 1UL << COUNT_COMMIT_ORDER); - if (likely(count & (count - 1))) + if (caa_likely(count & (count - 1))) return; /* Only if global count is power of 2 */ @@ -578,7 +578,7 @@ void ht_count_del(struct cds_lfht *ht, unsigned long size, unsigned long hash) dbg_printf("del split count %lu\n", split_count); count = uatomic_add_return(&ht->count, -(1UL << COUNT_COMMIT_ORDER)); - if (likely(count & (count - 1))) + if (caa_likely(count & (count - 1))) return; /* Only if global count is power of 2 */