SpiNNFrontEndCommon 7.3.1
Common support code for user-facing front end systems.
|
Sets of bits. More...
#include <bit_field.h>
#include <stdint.h>
#include <malloc_extras.h>
#include "../common/constants.h"
#include <debug.h>
Go to the source code of this file.
Data Structures | |
struct | bit_set_t |
wrapper over bitfield More... | |
Functions | |
bool | bit_set_clear (bit_set_t *b) |
Empty a bitset entirely. | |
static bool | bit_set_init (bit_set_t *b, unsigned int length) |
Create a new bitset. | |
static void | bit_set_delete (bit_set_t *b) |
Destroy a bitset. | |
static bool | bit_set_add (bit_set_t *b, unsigned int i) |
Add an element to a bitset. | |
static bool | bit_set_contains (bit_set_t *b, unsigned int i) |
Test if an element is in a bitset. | |
static bool | bit_set_remove (bit_set_t *b, unsigned int i) |
Remove an element from a bitset. | |
static void | print_bit_field_entry_v2 (uint32_t e, int offset) |
This function prints out an individual word of a bit_field, as a sequence of ones and zeros. | |
void | print_bit_field_bits_v2 (bit_field_t b, size_t s) |
This function prints out an entire bit_field, as a sequence of ones and zeros. | |
void | print_bit_set_bits (bit_field_t b, int s) |
This function prints out an entire bit_field, as a sequence of ones and zeros. | |
void | print_bit_set (bit_set_t b) |
prints a bit set | |
Sets of bits.
Definition in file bit_set.h.
struct bit_set_t |
void print_bit_field_bits_v2 | ( | bit_field_t | b, |
size_t | s | ||
) |
void print_bit_set_bits | ( | bit_field_t | b, |
int | s | ||
) |