diff --git a/Algorithms/CRC32.cpp b/Algorithms/CRC32.cpp index d2f821cb4..cb72e85c6 100644 --- a/Algorithms/CRC32.cpp +++ b/Algorithms/CRC32.cpp @@ -62,10 +62,10 @@ CRC32::CRC32CFunctionPtr CRC32::detectBestCRC32C() { unsigned ecx = cpuid(1); bool hasSSE42 = ecx & (1 << SSE42_BIT); if (hasSSE42) { - std::cout << "using hardware base sse computation" << std::endl; + SimpleLogger().Write() << "using hardware base sse computation"; return &CRC32::SSEBasedCRC32; //crc32 hardware accelarated; } else { - std::cout << "using software base sse computation" << std::endl; + SimpleLogger().Write() << "using software base sse computation"; return &CRC32::SoftwareBasedCRC32; //crc32cSlicingBy8; } } diff --git a/Algorithms/CRC32.h b/Algorithms/CRC32.h index 6321030b7..fb7e50613 100644 --- a/Algorithms/CRC32.h +++ b/Algorithms/CRC32.h @@ -21,6 +21,8 @@ #ifndef CRC32_H_ #define CRC32_H_ +#include "../Util/SimpleLogger.h" + #include // for boost::crc_32_type #include diff --git a/Algorithms/IteratorBasedCRC32.h b/Algorithms/IteratorBasedCRC32.h index 5d4415cb5..82c6b8cb4 100644 --- a/Algorithms/IteratorBasedCRC32.h +++ b/Algorithms/IteratorBasedCRC32.h @@ -22,6 +22,8 @@ or see http://www.gnu.org/licenses/agpl.txt. #ifndef ITERATORBASEDCRC32_H_ #define ITERATORBASEDCRC32_H_ +#include "../Util/SimpleLogger.h" + #include // for boost::crc_32_type #include @@ -80,10 +82,10 @@ private: unsigned ecx = cpuid(1); bool hasSSE42 = ecx & (1 << SSE42_BIT); if (hasSSE42) { - std::cout << "using hardware base sse computation" << std::endl; + SimpleLogger().Write() << "using hardware base CRC32 computation"; return &IteratorbasedCRC32::SSEBasedCRC32; //crc32 hardware accelarated; } else { - std::cout << "using software base sse computation" << std::endl; + SimpleLogger().Write() << "using software based CRC32 computation"; return &IteratorbasedCRC32::SoftwareBasedCRC32; //crc32cSlicingBy8; } }