Entirely remove constexpr on PaddedDirEnd. Refs #551

Apparently GCC 9.4 does not handle HWY_CXX17_CONSTEXPR as we intend.

PiperOrigin-RevId: 755967709
This commit is contained in:
Jan Wassenberg 2025-05-07 12:47:40 -07:00 committed by Copybara-Service
parent d9d1709df8
commit a0ff98ea60
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@ class BlobStore {
// Returns the end of the directory, including padding, which is also the
// start of the first payload. `num_blobs` is `NumBlobs()` if the header is
// already available, otherwise the number of blobs to be written.
static HWY_CXX17_CONSTEXPR size_t PaddedDirEnd(size_t num_blobs) {
static size_t PaddedDirEnd(size_t num_blobs) {
HWY_ASSERT(num_blobs < kMaxBlobs);
// Per blob, a key and offset/size.
return RoundUpToAlign(sizeof(Header) + 2 * kU128Bytes * num_blobs);