Mark zeek::util::pad_size as constexpr, which provides a small performance improvement

This commit is contained in:
Tim Wojtulewicz 2020-08-06 12:02:57 -07:00
parent 8d2d867a65
commit 80ebb4b67a

View file

@ -473,7 +473,7 @@ struct ltstr {
// Versions of realloc/malloc which abort() on out of memory
inline size_t pad_size(size_t size)
constexpr size_t pad_size(size_t size)
{
// We emulate glibc here (values measured on Linux i386).
// FIXME: We should better copy the portable value definitions from glibc.