diff options
author | Konstantinos Eleftheriou <konstantinos.eleftheriou@vrull.eu> | 2025-05-19 13:00:04 +0200 |
---|---|---|
committer | Philipp Tomsich <philipp.tomsich@vrull.eu> | 2025-05-27 15:16:00 +0200 |
commit | 764ea9ea3ea0aab10b935ae5cd079d1d236b6bb9 (patch) | |
tree | e2c197fd08aff2bb4683394d2ff7417fdc9e752f /libjava/classpath/lib/java | |
parent | a6ebf1ee80f1f754a4a0338da0af7413783be2f7 (diff) | |
download | gcc-764ea9ea3ea0aab10b935ae5cd079d1d236b6bb9.zip gcc-764ea9ea3ea0aab10b935ae5cd079d1d236b6bb9.tar.gz gcc-764ea9ea3ea0aab10b935ae5cd079d1d236b6bb9.tar.bz2 |
sbitmap: Add bitmap_all_bits_in_range_p function
This patch adds the `bitmap_all_bits_in_range_p` function in sbitmap,
which checks if all the bits in a range are set.
Helper function `bitmap_bit_in_range_p` has also been added, in order
to be used by `bitmap_all_bits_in_range_p` and
`bitmap_any_bit_in_range_p`. When the function's `any_inverted`
parameter is true, the function checks if any of the bits in the range
is unset, otherwise it checks if any of them is set.
Function `bitmap_any_bit_in_range_p` has been updated to call
`bitmap_bit_in_range_p` with the `any_inverted` parameter set to
false, retaining its previous functionality.
Function `bitmap_all_bits_in_range_p` calls `bitmap_bit_in_range_p`
with `any_inverted` set to true and returns the negation of the
result, i.e. true if all the bits in the range are set.
gcc/ChangeLog:
* sbitmap.cc (bitmap_any_bit_in_range_p):
Call and return the result of `bitmap_bit_in_range_p` with the
`any_inverted` parameter set to false.
(bitmap_bit_in_range_p): New function.
(bitmap_all_bits_in_range_p): New function.
* sbitmap.h (bitmap_all_bits_in_range_p): New function.
Diffstat (limited to 'libjava/classpath/lib/java')
0 files changed, 0 insertions, 0 deletions