V
V
Hello:
Consider the following nested for loop:
uint64 TABLE[8][256];
for (i=0; i<=7; i++)
for (j=1; j<=7; j++)
for (k=1; k<=(1<<j)-1; k++)
TABLE [((1<<j)+k)] = (TABLE[(1<<j)]) ^ (TABLE[k]);
I understand that unrolling just the inner most for-loop would give me
best performance and this is required for my project. But I'm unable
to figure out how to unroll just the innermost for-loop.
Can someone please help!
Thanks!
Consider the following nested for loop:
uint64 TABLE[8][256];
for (i=0; i<=7; i++)
for (j=1; j<=7; j++)
for (k=1; k<=(1<<j)-1; k++)
TABLE [((1<<j)+k)] = (TABLE[(1<<j)]) ^ (TABLE[k]);
I understand that unrolling just the inner most for-loop would give me
best performance and this is required for my project. But I'm unable
to figure out how to unroll just the innermost for-loop.
Can someone please help!
Thanks!