diff --git a/utils/Function.h b/utils/Function.h index c0e81b135..6940be880 100644 --- a/utils/Function.h +++ b/utils/Function.h @@ -15,7 +15,11 @@ namespace detail constexpr size_t calculateStorageSize() { +#if defined(__aarch64__) + constexpr size_t minSize = 22 * sizeof(uint64_t); +#else constexpr size_t minSize = 20 * sizeof(uint64_t); +#endif // Ensure EngineFunction has a size multiple of alignof(std::max_align_t) to not waste space with paddings // when we have a contiguous containers with EngineFunction constexpr size_t alignedSpace =