dot_product_avx2.h 558 B

12345678910111213141516171819
  1. #pragma once
  2. #include <util/system/types.h>
  3. #include <util/system/compiler.h>
  4. Y_PURE_FUNCTION
  5. i32 DotProductAvx2(const i8* lhs, const i8* rhs, size_t length) noexcept;
  6. Y_PURE_FUNCTION
  7. ui32 DotProductAvx2(const ui8* lhs, const ui8* rhs, size_t length) noexcept;
  8. Y_PURE_FUNCTION
  9. i64 DotProductAvx2(const i32* lhs, const i32* rhs, size_t length) noexcept;
  10. Y_PURE_FUNCTION
  11. float DotProductAvx2(const float* lhs, const float* rhs, size_t length) noexcept;
  12. Y_PURE_FUNCTION
  13. double DotProductAvx2(const double* lhs, const double* rhs, size_t length) noexcept;