3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-10-06 07:53:59 +00:00

replace a few old-school constructors for a 0.5% reduction in code size

don't waste those 128 KB!
This commit is contained in:
Nuno Lopes 2024-09-02 16:13:46 +01:00
parent a3eb2ff58d
commit ef58376c14
6 changed files with 15 additions and 21 deletions

View file

@ -52,9 +52,8 @@ public:
protected:
struct cell {
cell * m_next;
cell * m_next = (cell*)1;
T m_data;
cell():m_next(reinterpret_cast<cell*>(1)) {}
bool is_free() const { return GET_TAG(m_next) == 1; }
void mark_free() { m_next = TAG(cell*, m_next, 1); }
void unmark_free() { m_next = UNTAG(cell*, m_next); }