diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2024-02-06 01:25:11 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2024-02-06 01:25:11 (GMT) |
commit | cb97f097d9e7b9bc338fdec8689b45ab40c905c4 (patch) | |
tree | 9b77950e7a7fc28cb7e3cfcf36cbc270bcd8aeba /src/common/bits.h | |
parent | 5056bed107331457e703ae69d61b15434940acd1 (diff) |
Find free interleaving indexes for the ACISM backend using a dedicated search.
Diffstat (limited to 'src/common/bits.h')
-rw-r--r-- | src/common/bits.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/common/bits.h b/src/common/bits.h index 58fa0fe..8f67d3d 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 *); +/* Réduit ou étend la taille d'un champ en évitant l'allocation. */ +void truncate_bit_field(bitfield_t **, size_t); + /* Redimensionne un champ de bits. */ void resize_bit_field(bitfield_t **, size_t); @@ -90,9 +93,19 @@ bool test_zeros_within_bit_field(const bitfield_t *, size_t, const bitfield_t *) /* Teste l'état à 1 de bits selon un masque de bits. */ bool test_ones_within_bit_field(const bitfield_t *, size_t, const bitfield_t *); +/* Recherche l'indice idéal pour placer un champ dans un autre. */ +size_t find_interleaving_index_for_acism(const bitfield_t *, const bitfield_t *, size_t *); + /* Détermine le nombre de bits à 1 dans un champ. */ size_t popcount_for_bit_field(const bitfield_t *); +#if 0 + +/* Imprime sur la sortie standard la valeur représentée. */ +void output_bit_field(const bitfield_t *); + +#endif + #endif /* _COMMON_BITS_H */ |