When compiled with optimization for x86, func reduce(foo: [Int]) -> Int { foo.reduce(0, &+) } is auto-vectorized (godbolt link): .
確定! 回上一頁