Commit 137a7282 authored by Adam P. Goucher's avatar Adam P. Goucher

More outer-totalistic rules

parent 16f98f28
Pipeline #54380217 passed with stages
in 6 minutes and 57 seconds
#ifndef LIFELIB_VERSION /*
__version__=[x.replace('"', '') for x in '''
*/
#define LIFELIB_VERSION "ll2.2.1"
#define LIFELIB_VERSION "ll2.2.2"
// '''.split() if ('ll' in x)][0][2:]
#endif
......@@ -40,12 +40,13 @@ def create_rule(rulestring):
uint64_cu xmm9 = ((tmp)[threadIdx.x] & udx) | uda; \\
uint64_cu xmm11 = (tmp)[threadIdx.x] ^ udx; \\
xor2 = xmm8 & xmm11; \\
uda = a; \\
xmm8 ^= xmm11; \\\n''')
rchars, negate, beexor, essxor = rule2gates(rulestring)
usetopbit = (essxor or beexor)
regnames = ["xmm10", "xmm8", "xmm9", "a", "xor2", "udx"]
regnames = ["xmm10", "xmm8", "xmm9", "uda", "xor2", "udx"]
opnames = [" & ", " | ", " & ~", "nonsense", " ^ "]
if (usetopbit):
......
......@@ -13,7 +13,7 @@ def get_symmetries(rulestring):
validsyms += ["C2_4", "C2_2", "C2_1", "C4_4", "C4_1",
"D2_+2", "D2_+1", "D2_x", "D4_+4", "D4_+2", "D4_+1", "D4_x4", "D4_x1", "D8_4", "D8_1"]
if (rulestring == "b3s23"):
if (re.match('b36?7?8?s0?235?6?7?8?$', rulestring)):
validsyms += ["G1", "H2_+1", "H2_+2"] # GPU symmetries
return validsyms
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment