diff options
Diffstat (limited to 'src/common/bits.h')
-rw-r--r-- | src/common/bits.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/bits.h b/src/common/bits.h index 8f67d3d..cd71681 100644 --- a/src/common/bits.h +++ b/src/common/bits.h @@ -81,6 +81,9 @@ 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); +/* Détermine si un bit est à 1 dans un champ puis le définit. */ +bool test_and_set_in_bit_field(bitfield_t *, size_t); + /* Détermine si un ensemble de bits est à 0 dans un champ. */ bool test_none_in_bit_field(const bitfield_t *, size_t, size_t); |