aboutsummaryrefslogblamecommitdiffstats
path: root/library/cpp/dot_product/dot_product_avx2.h
blob: 715f151f4486c79708dbeee6a498a9c8ee0a1caf (plain) (tree)

















                                                                                    
#pragma once

#include <util/system/types.h>
#include <util/system/compiler.h>

Y_PURE_FUNCTION
i32 DotProductAvx2(const i8* lhs, const i8* rhs, size_t length) noexcept;

Y_PURE_FUNCTION
ui32 DotProductAvx2(const ui8* lhs, const ui8* rhs, size_t length) noexcept;

Y_PURE_FUNCTION
i64 DotProductAvx2(const i32* lhs, const i32* rhs, size_t length) noexcept;

Y_PURE_FUNCTION
float DotProductAvx2(const float* lhs, const float* rhs, size_t length) noexcept;

Y_PURE_FUNCTION
double DotProductAvx2(const double* lhs, const double* rhs, size_t length) noexcept;