Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
b0f0f8c
)
vlib: add vlib_frame_bitmap_and
49/35649/1
author
Damjan Marion
<damarion@cisco.com>
Tue, 15 Mar 2022 15:16:55 +0000
(16:16 +0100)
committer
Damjan Marion
<damarion@cisco.com>
Tue, 15 Mar 2022 15:17:31 +0000
(16:17 +0100)
Type: improvement
Change-Id: I531115f32c484e4c4794173d24e15f3b5b8f547b
Signed-off-by: Damjan Marion <damarion@cisco.com>
src/vlib/node_funcs.h
patch
|
blob
|
history
diff --git
a/src/vlib/node_funcs.h
b/src/vlib/node_funcs.h
index
a9101f5
..
147d5eb
100644
(file)
--- a/
src/vlib/node_funcs.h
+++ b/
src/vlib/node_funcs.h
@@
-1333,6
+1333,14
@@
vlib_frame_bitmap_or (uword *bmp, uword *bmp2)
bmp++[0] |= bmp2++[0];
}
+static_always_inline void
+vlib_frame_bitmap_and (uword *bmp, uword *bmp2)
+{
+ u32 n_left = VLIB_FRAME_BITMAP_N_UWORDS;
+ while (n_left--)
+ bmp++[0] &= bmp2++[0];
+}
+
static_always_inline u32
vlib_frame_bitmap_count_set_bits (uword *bmp)
{