Skip to content

Instantly share code, notes, and snippets.

@void-hoge
Created September 16, 2017 19:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save void-hoge/85c941fba5c28aa953802ad647327f71 to your computer and use it in GitHub Desktop.
Save void-hoge/85c941fba5c28aa953802ad647327f71 to your computer and use it in GitHub Desktop.
uint64 o = (cells[c] & 0x7F7F7F7F7F7F7F7F) << 1,
p = cells[1-c] & 0xFEFEFEFEFEFEFEFE;
uint64 left = (~(p | o) & (p + o)) & 0xFEFEFEFEFEFEFEFE;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment