Simd, Hpc, Dic, Computer Architecture.
function from outside // they will store the final min and max values *max = max_tmp[0]; *min = min_tmp[0]; for (int i = 1; i < simd_width; i++) { if (max_tmp[i] > *max) { *max = max_tmp[i]; } if (min_tmp[i] < *min) { *min = min_tmp[i]; } } Finally, we still might have a few unprocessed elements