diff options
author | 2019-02-14 21:34:30 +0100 | |
---|---|---|
committer | 2019-02-16 00:05:21 +0100 | |
commit | b113d0c26d8214b8820a152f5bc20496c564b7d3 (patch) | |
tree | c4a590b84ad26f3cd82b3c26166cd71730087114 /src/lib/netlist/plib/parray.h | |
parent | 417dab47cb633c447ba469f7b3a6460ed774422f (diff) |
netlist: memory pool now supports aligned storage. (nw)
Set USE_MEMPOOL to 1 to try this (max 5% performance increase).
For mingw, there is no alignment support. This triggers -Wattribute
errors which due to -Werror crash the build.
Diffstat (limited to 'src/lib/netlist/plib/parray.h')
-rw-r--r-- | src/lib/netlist/plib/parray.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/netlist/plib/parray.h b/src/lib/netlist/plib/parray.h index e3e15df5539..5fded97d1e9 100644 --- a/src/lib/netlist/plib/parray.h +++ b/src/lib/netlist/plib/parray.h @@ -109,8 +109,9 @@ namespace plib { const FT * data() const noexcept { return m_a.data(); } private: - base_type m_a; - size_type m_size; + PALIGNAS_VECTOROPT() + base_type m_a; + size_type m_size; }; } // namespace plib |