Skip to content

Instantly share code, notes, and snippets.

@hgn
Created March 1, 2014 21:51
Show Gist options
  • Save hgn/9298003 to your computer and use it in GitHub Desktop.
Save hgn/9298003 to your computer and use it in GitHub Desktop.
#define N 1024
int mul1[N][N];
int mul2[N][N];
int res[N][N];
void calculate(void)
{
int i, j, k;
for (i = 0; i < N; ++i)
for (j = 0; j < N; ++j)
for (k = 0; k < N; ++k)
res[i][j] += mul1[i][k] * mul2[k][j];
}
int main(void)
{
calculate();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment