| 4216 | |
| 4217 | |
| 4218 | void CellEngine::n_spinglass() |
| 4219 | { |
| 4220 | |
| 4221 | #define SPINGLASS ( \ |
| 4222 | ((((xx + x) ^ (yy + y) ^ phase) & 1) /* spatio-temporal phase */ \ |
| 4223 | ? c /* stay the same if true */ \ |
| 4224 | : (((((((n >> 7) ^ (c >> 0)) & 1) + \ |
| 4225 | (((w >> 7) ^ (c >> 1)) & 1) + \ |
| 4226 | (((s >> 7) ^ (s >> 0)) & 1) + \ |
| 4227 | (((e >> 7) ^ (e >> 1)) & 1)) != 2) \ |
| 4228 | ? (c & 1) /* stay the same if energy != 2 */ \ |
| 4229 | : ((c & 1) ^ 0x80) /* flip if energy == 2 */ \ |
| 4230 | ) \ |
| 4231 | ) \ |
| 4232 | ) \ |
| 4233 | ) |
| 4234 | |
| 4235 | CAM_MASKED_REG_LOOP(SPINGLASS) |
| 4236 | } |
| 4237 | |
| 4238 | |
| 4239 | static Byte GlassBondsTable[16] = { |
nothing calls this directly
no outgoing calls
no test coverage detected