acc_amd64.go 784 B

12345678910111213141516171819202122232425262728293031323334
  1. // Copyright 2016 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. // +build !appengine
  5. // +build gc
  6. // +build go1.6
  7. // +build !noasm
  8. package vector
  9. func haveSSE4_1() bool
  10. var haveFixedAccumulateSIMD = haveSSE4_1()
  11. const haveFloatingAccumulateSIMD = true
  12. //go:noescape
  13. func fixedAccumulateOpOverSIMD(dst []uint8, src []uint32)
  14. //go:noescape
  15. func fixedAccumulateOpSrcSIMD(dst []uint8, src []uint32)
  16. //go:noescape
  17. func fixedAccumulateMaskSIMD(buf []uint32)
  18. //go:noescape
  19. func floatingAccumulateOpOverSIMD(dst []uint8, src []float32)
  20. //go:noescape
  21. func floatingAccumulateOpSrcSIMD(dst []uint8, src []float32)
  22. //go:noescape
  23. func floatingAccumulateMaskSIMD(dst []uint32, src []float32)