diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2022-12-09 07:57:36 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2022-12-09 07:57:52 (GMT) |
commit | c27f884ec1d18d9cff0d19d6ba8de1dd54d991c4 (patch) | |
tree | 6549b81a21142c6e5ace2ba12039d45b6cd12084 /src/common/bits.h | |
parent | 6dea5e4fed979cb57f3dbc0c9144f1ff1854b800 (diff) |
Allow OR operations in bit fields at a given position.
Diffstat (limited to 'src/common/bits.h')
-rw-r--r-- | src/common/bits.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/common/bits.h b/src/common/bits.h index fb231d5..58fa0fe 100644 --- a/src/common/bits.h +++ b/src/common/bits.h @@ -45,6 +45,9 @@ void delete_bit_field(bitfield_t *); /* Copie un champ de bits dans un autre. */ void copy_bit_field(bitfield_t *, const bitfield_t *); +/* Redimensionne un champ de bits. */ +void resize_bit_field(bitfield_t **, size_t); + /* Indique la taille d'un champ de bits donné. */ size_t get_bit_field_size(const bitfield_t *); @@ -69,6 +72,9 @@ void and_bit_field(bitfield_t *, const bitfield_t *); /* Réalise une opération OU logique entre deux champs de bits. */ void or_bit_field(bitfield_t *, const bitfield_t *); +/* Réalise une opération OU logique entre deux champs de bits. */ +void or_bit_field_at(bitfield_t *, const bitfield_t *, size_t); + /* Détermine si un bit est à 1 dans un champ de bits. */ bool test_in_bit_field(const bitfield_t *, size_t); |