i have written a piece of code as follows:
Code:
char my_ex_or_function( char *ptr )
{
char ex_or = 0;
int i;
for( i=0; i<10000; i++ )// ptr will be pointing to fixed block of size 10000
ex_or ^= ptr[i];
return ex_or;
}
while compiling above code, I am seeing following error:
cc1: error: vector shuffling operation will be expanded piecewise [-Werror=vector-operation-performance]
I referred
this link
but my requirement is to do XOR.
As I am treating the warnings also as errors, I am seeing compilation is failing.
I am using gcc version 5.2.1 20151010 (Ubuntu 5.2.1-22ubuntu2)
can some one help me how to fix this warning ?