diff options
author | Ulrich Bauer <mail@ulrich-bauer.org> | 2016-11-22 18:26:01 -0500 |
---|---|---|
committer | Ulrich Bauer <mail@ulrich-bauer.org> | 2016-11-22 18:26:01 -0500 |
commit | 35aa9fb73163ef7c8b98f9913fa38dfef1ada692 (patch) | |
tree | 52b1a2a56c158e7745fdde1b71a54630eb9f2ac4 /ripser.cpp | |
parent | c0574ec97f6d413b597447636a39b550cb55ee5d (diff) |
moved attribute packed
Diffstat (limited to 'ripser.cpp')
-rw-r--r-- | ripser.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -136,13 +136,13 @@ std::vector<index_t> vertices_of_simplex(const index_t simplex_index, const inde } #ifdef USE_COEFFICIENTS -struct entry_t { +struct __attribute__((packed)) entry_t { index_t index : 8 * (sizeof(index_t) - sizeof(coefficient_t)); coefficient_t coefficient; entry_t(index_t _index, coefficient_t _coefficient) : index(_index), coefficient(_coefficient) {} entry_t(index_t _index) : index(_index), coefficient(1) {} entry_t() : index(0), coefficient(1) {} -} __attribute__((packed)); +}; static_assert(sizeof(entry_t) == sizeof(index_t), "size of entry_t is not the same as index_t"); |