I need to generate branchless code for the if statement in the inner loop if(i != j). I am confused how to generate branchless code.
for (int i = start; i < n; i++)
{
results[i] = 999;
for (int j = 0; j < n; j++)
{
if (i != j)
{
d = myfunction(x, y, i, j);
if (d < results[i])
results[i] = d;
}
}
}