Skip to content

Commit

Permalink
Fix building on aarch64 (#356)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielgronberg authored Feb 15, 2024
1 parent 39b85f7 commit 9166562
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions utils/Function.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down

0 comments on commit 9166562

Please sign in to comment.