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

Method n_moore_ab

MicropolisCore/src/CellEngine/src/cellengine.cpp:1605–1625  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1603
1604
1605void CellEngine::n_moore_ab()
1606{
1607 if (rule == NULL) return;
1608
1609 // 0 1 2 3 4 5 6 7 8 9 10 11
1610 // c c' se sw ne nw e w s n &c &c'
1611 // 0x1 0x2 0x4 0x8 0x10 0x20 0x40 0x80 0x100 0x200 0x400 0x800
1612
1613#define MOORE_AB ( \
1614 MOORE_A | \
1615 ((c & 0x0c) << 8))
1616
1617 if (inflation) {
1618 int last = 0;
1619 int heat = 0;
1620
1621 CAM_MASKED_REG_TABLE_HEAT4_LOOP(MOORE_AB)
1622 } else {
1623 CAM_MASKED_REG_TABLE_LOOP(MOORE_AB)
1624 } // if
1625}
1626
1627
1628void CellEngine::n_vonn_neumann()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected