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

Method n_spinsonly

MicropolisCore/src/CellEngine/src/cellengine.cpp:4111–4126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4109
4110
4111void CellEngine::n_spinsonly()
4112{
4113
4114#define SPINSONLY ( \
4115 ((((xx + x) ^ (yy + y) ^ phase) & 1) /* spatio-temporal phase */ \
4116 ? c /* stay the same if true */ \
4117 : (((SUM4REG(1) != 2) /* can we not flip? */ \
4118 ? (c & 1) /* no flip */ \
4119 : ((c ^ 1) & 1) /* do flip */ \
4120 ) \
4121 ) \
4122 ) \
4123)
4124
4125 CAM_MASKED_REG_LOOP(SPINSONLY)
4126}
4127
4128
4129void CellEngine::n_spinsbank()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected