summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
314558b)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
dbg_printf("add split count %lu\n", split_count);
count = uatomic_add_return(&ht->count,
1UL << COUNT_COMMIT_ORDER);
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 */
return;
/* Only if global count is power of 2 */
dbg_printf("del split count %lu\n", split_count);
count = uatomic_add_return(&ht->count,
-(1UL << COUNT_COMMIT_ORDER));
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 */
return;
/* Only if global count is power of 2 */