Skip to content

Commit

Permalink
Merge pull request #2 from binary-banter/fix-typo
Browse files Browse the repository at this point in the history
Fix typo
  • Loading branch information
Vlamonster authored Jul 5, 2024
2 parents 43ecd13 + f4f3414 commit b7dbd17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions content/game-of-life.md
Original file line number Diff line number Diff line change
Expand Up @@ -238,10 +238,10 @@ result = grid[i]
result |= w;

// if we have 2,3,6,7 live neighbours, we survive
center &= (y ^ z);
result &= (y ^ z);

// if we have 0,1,2,3 live neighbours, we survive
center &= ~x;
result &= ~x;
```

So we can now use this to simulate a fully packed `u64` of cells in parallel.
Expand Down

0 comments on commit b7dbd17

Please sign in to comment.