mirror of
https://github.com/openvswitch/ovs
synced 2025-10-27 15:18:06 +00:00
Move lib/meta-flow.h to include/openvswitch directory
This commit also moves some bitmap macros into public header files and adds some #include directives in soure files in order to make the 'meta-flow.h' move possible. Signed-off-by: Ben Warren <ben@skyportsystems.com> Signed-off-by: Ben Pfaff <blp@ovn.org>
This commit is contained in:
@@ -21,8 +21,6 @@
|
||||
#include <stdlib.h>
|
||||
#include "util.h"
|
||||
|
||||
#define BITMAP_ULONG_BITS (sizeof(unsigned long) * CHAR_BIT)
|
||||
|
||||
static inline unsigned long *
|
||||
bitmap_unit__(const unsigned long *bitmap, size_t offset)
|
||||
{
|
||||
@@ -35,8 +33,6 @@ bitmap_bit__(size_t offset)
|
||||
return 1UL << (offset % BITMAP_ULONG_BITS);
|
||||
}
|
||||
|
||||
#define BITMAP_N_LONGS(N_BITS) DIV_ROUND_UP(N_BITS, BITMAP_ULONG_BITS)
|
||||
|
||||
static inline size_t
|
||||
bitmap_n_longs(size_t n_bits)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user