diff options
Diffstat (limited to 'src/vppinfra/bitops.h')
-rw-r--r-- | src/vppinfra/bitops.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/vppinfra/bitops.h b/src/vppinfra/bitops.h index 15454ca5036..7a4be3ce4c3 100644 --- a/src/vppinfra/bitops.h +++ b/src/vppinfra/bitops.h @@ -38,6 +38,9 @@ #ifndef included_clib_bitops_h #define included_clib_bitops_h +#define SET_BIT(i) (1 << i) +#define GET_BIT(n, i) (n >> i) & 1U + static_always_inline uword clear_lowest_set_bit (uword x) { |