/******************************************************************************
*
-* Copyright (c) 2019 Intel.
+* Copyright (c) 2020 Intel.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
#include "xran_compression.hpp"
#include "xran_bfp_utils.hpp"
+#include "xran_bfp_byte_packing_utils.hpp"
#include <complex>
#include <algorithm>
#include <immintrin.h>
inline void
compress8_16RB(const BlockFloatCompander::ExpandedData& dataIn, BlockFloatCompander::CompressedData* dataOut, const __m512i totShiftBits)
{
- const auto exponents = computeExponent_16RB(dataIn, totShiftBits);
+ const __m512i exponents = computeExponent_16RB(dataIn, totShiftBits);
const __m256i* dataInAddr = reinterpret_cast<const __m256i*>(dataIn.dataExpanded);
#pragma unroll(16)
for (int n = 0; n < 16; ++n)
inline void
compress8_4RB(const BlockFloatCompander::ExpandedData& dataIn, BlockFloatCompander::CompressedData* dataOut, const __m512i totShiftBits)
{
- const auto exponents = computeExponent_4RB(dataIn, totShiftBits);
+ const __m512i exponents = computeExponent_4RB(dataIn, totShiftBits);
const __m256i* dataInAddr = reinterpret_cast<const __m256i*>(dataIn.dataExpanded);
#pragma unroll(4)
for (int n = 0; n < 4; ++n)