algorithmica
algorithmica copied to clipboard
Fix a bug in reduction.md `sum_simd` function
Since a is a vector of 8 ints, it cannot be added directly with int res. We need an extra loop to iterate through every element in a.