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/mat_cr.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/mat_cr.h')
-rw-r--r-- | src/lib/netlist/plib/mat_cr.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/netlist/plib/mat_cr.h b/src/lib/netlist/plib/mat_cr.h index be2d730b215..3cf2570b725 100644 --- a/src/lib/netlist/plib/mat_cr.h +++ b/src/lib/netlist/plib/mat_cr.h @@ -72,7 +72,7 @@ namespace plib ~matrix_compressed_rows_t() = default; - constexpr index_type size() const { return (N>0) ? N : m_size; } + constexpr index_type size() const { return static_cast<index_type>((N>0) ? N : m_size); } void set_scalar(const T scalar) { |