slide 20 of 23
t = 0; for (i=0; i<MAX; ++i) t += x[i]; return(t);
t = ((x & 0x00ff00ff) + ((x >> 8) & 0x00ff00ff)); return((t + (t >> 16)) & 0x000003ff);