 = a; a = b; b = c;}

__global__ void sort(const float *xs1,
                     const float *xs2,
                     float *ys,
                     int size) {
  int i = (blockDim.x * blockIdx.x + threadIdx.x);
  float checksum = 0.;
  for(auto j = 0u; j &lt; TheInnerLoop - 2; ++j) {
    double s[3] = {xs1[i+j],xs1[i+j+1],xs1[i+j+2]};
    <b>if(s[0] &gt; s[1])
      swap(s[0], s[1]);
    if(s[1] &gt; s[2])
      swap(s[1], s[2]);
    if(s[0] &gt; s[1])
      swap(s[0], s[1]);</b>
    checksum += s[0] +