ndn-lite
Macros | Typedefs | Functions
bit-operations.h File Reference
#include <stddef.h>
#include <stdint.h>

Go to the source code of this file.

Macros

#define LEAST_SIG_BIT(x)   ((x) & (-(x)))
 

Typedefs

typedef uint64_t ndn_bitset_t
 

Functions

static ndn_bitset_t bitset_set (ndn_bitset_t set, size_t val)
 
static ndn_bitset_t bitset_unset (ndn_bitset_t set, size_t val)
 
static size_t bitset_log2 (ndn_bitset_t val)
 
static size_t bitset_pop_least (ndn_bitset_t *val)
 

Macro Definition Documentation

◆ LEAST_SIG_BIT

#define LEAST_SIG_BIT (   x)    ((x) & (-(x)))

Typedef Documentation

◆ ndn_bitset_t

typedef uint64_t ndn_bitset_t

Function Documentation

◆ bitset_log2()

static size_t bitset_log2 ( ndn_bitset_t  val)
inlinestatic

◆ bitset_pop_least()

static size_t bitset_pop_least ( ndn_bitset_t val)
inlinestatic

◆ bitset_set()

static ndn_bitset_t bitset_set ( ndn_bitset_t  set,
size_t  val 
)
inlinestatic

◆ bitset_unset()

static ndn_bitset_t bitset_unset ( ndn_bitset_t  set,
size_t  val 
)
inlinestatic