* INTC Contribution to the O-RAN F Release for O-DU Low
[o-du/phy.git] / fhi_lib / lib / src / xran_bfp_cplane64.cpp
index 1238494..ac39679 100644 (file)
@@ -1,6 +1,6 @@
 /******************************************************************************
 *
-*   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.
@@ -26,6 +26,7 @@
 
 #include "xran_compression.hpp"
 #include "xran_bfp_utils.hpp"
+#include "xran_bfp_byte_packing_utils.hpp"
 #include <complex>
 #include <algorithm>
 #include <immintrin.h>
@@ -208,7 +209,7 @@ namespace BFP_CPlane_64
   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 __m512i* dataInAddr = reinterpret_cast<const __m512i*>(dataIn.dataExpanded);
 #pragma unroll(16)
     for (int n = 0; n < 16; ++n)
@@ -221,7 +222,7 @@ namespace BFP_CPlane_64
   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 __m512i* dataInAddr = reinterpret_cast<const __m512i*>(dataIn.dataExpanded);
 #pragma unroll(4)
     for (int n = 0; n < 4; ++n)