aboutsummaryrefslogtreecommitdiffstats
path: root/src/vppinfra/bitmap.h
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2021-07-16 13:44:33 +0200
committerMatthew Smith <mgsmith@netgate.com>2021-07-16 12:59:24 +0000
commit04572bea3499ab013d92799648c38b021767ff39 (patch)
treed73b961d48ec1e63bb0665f35a2fccb655efaa7d /src/vppinfra/bitmap.h
parentf2912e02cec27348900e49220e45eb65f75236c3 (diff)
vppinfra: remove pool_foreach_old, pool_foreach_index_old, clib_bitmap_foreach_old
Type: refactor Change-Id: Ifacdd001bdeb5d609d495406f53546090b86476d Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vppinfra/bitmap.h')
-rw-r--r--src/vppinfra/bitmap.h19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/vppinfra/bitmap.h b/src/vppinfra/bitmap.h
index d18cf30199d..92205bfc8e8 100644
--- a/src/vppinfra/bitmap.h
+++ b/src/vppinfra/bitmap.h
@@ -364,25 +364,6 @@ clib_bitmap_set_region (uword * bitmap, uword i, uword value, uword n_bits)
i != ~0; \
i = clib_bitmap_next_set (ai, i + 1))
-#define clib_bitmap_foreach_old(i,ai,body) \
-do { \
- uword __bitmap_i, __bitmap_ai, __bitmap_len, __bitmap_first_set; \
- __bitmap_len = vec_len ((ai)); \
- for (__bitmap_i = 0; __bitmap_i < __bitmap_len; __bitmap_i++) \
- { \
- __bitmap_ai = (ai)[__bitmap_i]; \
- while (__bitmap_ai != 0) \
- { \
- __bitmap_first_set = first_set (__bitmap_ai); \
- (i) = (__bitmap_i * BITS ((ai)[0]) \
- + min_log2 (__bitmap_first_set)); \
- do { body; } while (0); \
- __bitmap_ai ^= __bitmap_first_set; \
- } \
- } \
-} while (0)
-
-
/** Return the lowest numbered set bit in a bitmap
@param ai - pointer to the bitmap
@returns lowest numbered set bit, or ~0 if the entire bitmap is zero