Source file src/simd/testdata/ip/boringsum.go
1 // Copyright 2026 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 package main 6 7 import ( 8 "simd" 9 ) 10 11 func boringSum(x simd.Float32s) float32 { 12 s := make([]float32, x.Len()) 13 x.Store(s) 14 var r float32 15 for _, e := range s { 16 r += e 17 } 18 return r 19 } 20