#ifndef SCANN_HASHES_INTERNAL_LUT16_AVX2_H_
#define SCANN_HASHES_INTERNAL_LUT16_AVX2_H_
#include <cstdint>
#ifdef __x86_64__
#include "scann/hashes/internal/lut16_args.h"
#include "scann/utils/intrinsics/attributes.h"
#include "scann/utils/types.h"
namespace research_scann {
namespace asymmetric_hashing_internal {
template <size_t kNumQueries, PrefetchStrategy kPrefetch>
class LUT16Avx2 {
public:
SCANN_AVX2_OUTLINE static void GetInt16Distances(LUT16Args<int16_t> args);
SCANN_AVX2_OUTLINE static void GetInt32Distances(LUT16Args<int32_t> args);
SCANN_AVX2_OUTLINE static void GetTopInt16Distances(
LUT16ArgsTopN<int16_t> args);
SCANN_AVX2_OUTLINE static void GetTopFloatDistances(
LUT16ArgsTopN<float> args);
SCANN_AVX2_OUTLINE static void GetFloatDistances(
LUT16Args<float> args, ConstSpan<float> inv_fp_multipliers);
};
SCANN_INSTANTIATE_CLASS_FOR_LUT16_BATCH_SIZES(extern, LUT16Avx2);
} }
#endif
#endif