mirror of https://github.com/google/gemma.cpp.git
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:
parent
d9d1709df8
commit
a0ff98ea60
|
|
@ -105,7 +105,7 @@ class BlobStore {
|
||||||
// Returns the end of the directory, including padding, which is also the
|
// 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
|
// start of the first payload. `num_blobs` is `NumBlobs()` if the header is
|
||||||
// already available, otherwise the number of blobs to be written.
|
// 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);
|
HWY_ASSERT(num_blobs < kMaxBlobs);
|
||||||
// Per blob, a key and offset/size.
|
// Per blob, a key and offset/size.
|
||||||
return RoundUpToAlign(sizeof(Header) + 2 * kU128Bytes * num_blobs);
|
return RoundUpToAlign(sizeof(Header) + 2 * kU128Bytes * num_blobs);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue