Macaulay2 Engine
Loading...
Searching...
No Matches

◆ move_up()

void MonomialTable::move_up ( mon_term *const y,
mon_term *const head )
staticprivate

Definition at line 94 of file montable.cpp.

95{
96 if (head->_next == y) return;
97 mon_term *const x = y->_prev;
98 mon_term *const w = x->_prev;
99 mon_term *const z = y->_next;
100 w->_next = y;
101 z->_prev = x;
102 x->_next = z;
103 x->_prev = y;
104 y->_next = x;
105 y->_prev = w;
106}
volatile int x
Doubly-linked-list node of a MonomialTable's per-component monomial list.
Definition montable.hpp:109

References MonomialTable::mon_term::_next, MonomialTable::mon_term::_prev, and x.