3 comments

[ 3.3 ms ] story [ 17.2 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)