MCPcopy Create free account
hub / github.com/SimHacker/micropolis / n_vanneal

Method n_vanneal

MicropolisCore/src/CellEngine/src/cellengine.cpp:5140–5159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5138
5139
5140void CellEngine::n_vanneal()
5141{
5142 long sum;
5143
5144 if (total < hubba) {
5145 inflation = 1;
5146 } else if (total == hubba) {
5147 inflation = 0;
5148 } else {
5149 inflation = -1;
5150 } // if
5151
5152 total = 0;
5153
5154#define VANNEAL ( \
5155 (((((sum = inflation + SUM9REG(1)) > 5) || (sum == 4))) ? (total++, 1) : 0) | \
5156 ((c&0x7f) << 1))
5157
5158 CAM_MASKED_REG_LOOP(VANNEAL)
5159}
5160
5161
5162void CellEngine::n_vanneal8()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected