mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 16:48:19 +00:00
Mark zeek::util::pad_size as constexpr, which provides a small performance improvement
This commit is contained in:
parent
8d2d867a65
commit
80ebb4b67a
1 changed files with 1 additions and 1 deletions
|
@ -473,7 +473,7 @@ struct ltstr {
|
||||||
|
|
||||||
// Versions of realloc/malloc which abort() on out of memory
|
// 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).
|
// We emulate glibc here (values measured on Linux i386).
|
||||||
// FIXME: We should better copy the portable value definitions from glibc.
|
// FIXME: We should better copy the portable value definitions from glibc.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue