algorithmica icon indicating copy to clipboard operation
algorithmica copied to clipboard

Fix a bug in reduction.md `sum_simd` function

Open fffelix-huang opened this issue 1 year ago • 0 comments

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.

fffelix-huang avatar Mar 27 '24 16:03 fffelix-huang