X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=lib%2Flibrte_sched%2Frte_bitmap.h;h=ea4a5f8d8b9d49cf51652369ebc92bbaa5629d5e;hb=693f715da45c48ec1ec0fe4ba2f3b5ffd11ba53e;hp=3d911e42b83c21263251ba315f266e446b01de88;hpb=6e7caa1ad9d597fed0a49468af25ae6e68b8c443;p=dpdk.git diff --git a/lib/librte_sched/rte_bitmap.h b/lib/librte_sched/rte_bitmap.h index 3d911e42b8..ea4a5f8d8b 100644 --- a/lib/librte_sched/rte_bitmap.h +++ b/lib/librte_sched/rte_bitmap.h @@ -115,7 +115,7 @@ __rte_bitmap_index1_inc(struct rte_bitmap *bmp) static inline uint64_t __rte_bitmap_mask1_get(struct rte_bitmap *bmp) { - return ((~1lu) << bmp->offset1); + return (~1lu) << bmp->offset1; } static inline void @@ -344,7 +344,7 @@ rte_bitmap_get(struct rte_bitmap *bmp, uint32_t pos) index2 = pos >> RTE_BITMAP_SLAB_BIT_SIZE_LOG2; offset2 = pos & RTE_BITMAP_SLAB_BIT_MASK; slab2 = bmp->array2 + index2; - return ((*slab2) & (1lu << offset2)); + return (*slab2) & (1lu << offset2); } /** @@ -412,7 +412,7 @@ __rte_bitmap_line_not_empty(uint64_t *slab2) v1 |= v2; v3 |= v4; - return (v1 | v3); + return v1 | v3; } /**