Skip to content

Instantly share code, notes, and snippets.

@aki-lua87
Created September 8, 2014 11:26
Show Gist options
  • Save aki-lua87/505ea749194d6a59861c to your computer and use it in GitHub Desktop.
Save aki-lua87/505ea749194d6a59861c to your computer and use it in GitHub Desktop.
#include<stdio.h>
int main(void)
{
int mk[127];
mk[0] = 1;
mk[1] = 1;
mk[2] = 1;
mk[3] = 1;
mk[4] = 1;
mk[5] = 1;
mk[6] = 1;
for (int i = 7; i < 128; i++)
{
mk[i] = mk[i - 7] ^ mk[i - 1];
}
for (int i = 0; i < 128; i++)
{
printf("%d -> %d \n",i,mk[i]);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment