diff --git a/CMakeLists.txt b/CMakeLists.txt index b0da96f7..61892c37 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -66,6 +66,15 @@ if (NOT HEXL_FPGA_COMPATIBILITY) set(HEXL_FPGA_COMPATIBILITY "0" CACHE INTERNAL "Set FPGA compatibility mask" FORCE) endif() +# Get the current working branch +execute_process( + COMMAND git rev-parse --abbrev-ref HEAD + WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} + OUTPUT_VARIABLE GIT_BRANCH + OUTPUT_STRIP_TRAILING_WHITESPACE +) + +message(STATUS "HEXL BRANCH: ${GIT_BRANCH}") message(STATUS "CMAKE_BUILD_TYPE: ${CMAKE_BUILD_TYPE}") message(STATUS "CMAKE_C_COMPILER: ${CMAKE_C_COMPILER}") message(STATUS "CMAKE_CXX_COMPILER: ${CMAKE_CXX_COMPILER}") diff --git a/hexl/include/hexl/ntt/ntt.hpp b/hexl/include/hexl/ntt/ntt.hpp index 93ccba72..6346d266 100644 --- a/hexl/include/hexl/ntt/ntt.hpp +++ b/hexl/include/hexl/ntt/ntt.hpp @@ -40,7 +40,7 @@ class NTT { NTT() = default; /// @brief Destructs the NTT object - ~NTT() = default; + ~NTT(); /// @brief Initializes an NTT object with degree \p degree and modulus \p q. /// @param[in] degree also known as N. Size of the NTT transform. Must be a diff --git a/hexl/ntt/ntt-internal.cpp b/hexl/ntt/ntt-internal.cpp index 9ace8741..5c86b01c 100644 --- a/hexl/ntt/ntt-internal.cpp +++ b/hexl/ntt/ntt-internal.cpp @@ -51,6 +51,8 @@ NTT::NTT(uint64_t degree, uint64_t q, uint64_t root_of_unity, NTT::NTT(uint64_t degree, uint64_t q, std::shared_ptr alloc_ptr) : NTT(degree, q, MinimalPrimitiveRoot(2 * degree, q), alloc_ptr) {} +NTT::~NTT() = default; + void NTT::ComputeRootOfUnityPowers() { AlignedVector64 root_of_unity_powers(m_degree, 0, m_aligned_alloc); AlignedVector64 inv_root_of_unity_powers(m_degree, 0,