3 comments

[ 2.6 ms ] story [ 28.0 ms ] thread

  int t = (data[c] - 128) >> 31;
  sum += ~t & data[c];
> They've gone to plaid
For completeness, a) make the array very big (much much bigger than the LLC) b) split the work amongst cores (make it parallel with your favorite methodology)