MCPcopy Create free account
hub / github.com/F-Stack/f-stack / __rte_bitmap_scan_search

Function __rte_bitmap_scan_search

dpdk/lib/eal/include/rte_bitmap.h:490–515  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

488}
489
490static inline int
491__rte_bitmap_scan_search(struct rte_bitmap *bmp)
492{
493 uint64_t value1;
494 uint32_t i;
495
496 /* Check current array1 slab */
497 value1 = bmp->array1[bmp->index1];
498 value1 &= __rte_bitmap_mask1_get(bmp);
499
500 if (rte_bsf64_safe(value1, &bmp->offset1))
501 return 1;
502
503 __rte_bitmap_index1_inc(bmp);
504 bmp->offset1 = 0;
505
506 /* Look for another array1 slab */
507 for (i = 0; i < bmp->array1_size; i ++, __rte_bitmap_index1_inc(bmp)) {
508 value1 = bmp->array1[bmp->index1];
509
510 if (rte_bsf64_safe(value1, &bmp->offset1))
511 return 1;
512 }
513
514 return 0;
515}
516
517static inline void
518__rte_bitmap_scan_read_init(struct rte_bitmap *bmp)

Callers 1

rte_bitmap_scanFunction · 0.85

Calls 3

__rte_bitmap_mask1_getFunction · 0.85
__rte_bitmap_index1_incFunction · 0.85
rte_bsf64_safeFunction · 0.70

Tested by

no test coverage detected