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

Function wce

MicropolisCore/src/CellEngine/src/cellengine.cpp:5411–5424  ·  view source on GitHub ↗

Return 1 if well flanked by an excited (not next excited) confluent state, else returns 0. */

Source from the content-addressed store, hash-verified

5409/* Return 1 if well flanked by an excited (not next excited) confluent state,
5410 else returns 0. */
5411int wce(Byte state, Byte right, Byte up, Byte left, Byte down)
5412{
5413 state &= DM;
5414 return (
5415 (((right == C10) || (right == C11)) &&
5416 (state != RD)) ||
5417 (((up == C10) || (up == C11)) &&
5418 (state != UD)) ||
5419 (((left == C10) || (left == C11)) &&
5420 (state != LD)) ||
5421 (((down == C10) || (down == C11)) &&
5422 (state != DD))
5423 );
5424}
5425
5426
5427/* Return excited confluent state. */

Callers 1

n_jvn29Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected