diff options
Diffstat (limited to 'src/alloc.c')
| -rw-r--r-- | src/alloc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/alloc.c b/src/alloc.c index 990390f5a36..2a00767682d 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -2017,8 +2017,8 @@ INIT must be an integer that represents a character. */) | |||
| 2017 | return val; | 2017 | return val; |
| 2018 | } | 2018 | } |
| 2019 | 2019 | ||
| 2020 | verify (sizeof (size_t) * CHAR_BIT == BITS_PER_SIZE_T); | 2020 | verify (sizeof (size_t) * CHAR_BIT == BITS_PER_BITS_WORD); |
| 2021 | verify ((BITS_PER_SIZE_T & (BITS_PER_SIZE_T - 1)) == 0); | 2021 | verify ((BITS_PER_BITS_WORD & (BITS_PER_BITS_WORD - 1)) == 0); |
| 2022 | 2022 | ||
| 2023 | static ptrdiff_t | 2023 | static ptrdiff_t |
| 2024 | bool_vector_payload_bytes (ptrdiff_t nr_bits, | 2024 | bool_vector_payload_bytes (ptrdiff_t nr_bits, |
| @@ -2030,14 +2030,14 @@ bool_vector_payload_bytes (ptrdiff_t nr_bits, | |||
| 2030 | eassert (nr_bits >= 0); | 2030 | eassert (nr_bits >= 0); |
| 2031 | 2031 | ||
| 2032 | exact_needed_bytes = ROUNDUP ((size_t) nr_bits, CHAR_BIT) / CHAR_BIT; | 2032 | exact_needed_bytes = ROUNDUP ((size_t) nr_bits, CHAR_BIT) / CHAR_BIT; |
| 2033 | needed_bytes = ROUNDUP ((size_t) nr_bits, BITS_PER_SIZE_T) / CHAR_BIT; | 2033 | needed_bytes = ROUNDUP ((size_t) nr_bits, BITS_PER_BITS_WORD) / CHAR_BIT; |
| 2034 | 2034 | ||
| 2035 | if (needed_bytes == 0) | 2035 | if (needed_bytes == 0) |
| 2036 | { | 2036 | { |
| 2037 | /* Always allocate at least one machine word of payload so that | 2037 | /* Always allocate at least one machine word of payload so that |
| 2038 | bool-vector operations in data.c don't need a special case | 2038 | bool-vector operations in data.c don't need a special case |
| 2039 | for empty vectors. */ | 2039 | for empty vectors. */ |
| 2040 | needed_bytes = sizeof (size_t); | 2040 | needed_bytes = sizeof (bits_word); |
| 2041 | } | 2041 | } |
| 2042 | 2042 | ||
| 2043 | if (exact_needed_bytes_out != NULL) | 2043 | if (exact_needed_bytes_out != NULL) |