From 9e6ac95e4f04ede7127efb56f87f369ab6334591 Mon Sep 17 00:00:00 2001 From: DennisOSRM Date: Mon, 17 Sep 2012 15:38:02 +0200 Subject: [PATCH] Output of used CRC32 method more verbose --- Algorithms/CRC32.cpp | 4 ++-- DataStructures/DeallocatingVector.h | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Algorithms/CRC32.cpp b/Algorithms/CRC32.cpp index 25aabc55b..b2329e641 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 << "sse based" << std::endl; + std::cout << "using hardware base sse computation" << std::endl; return &CRC32::SSEBasedCRC32; //crc32 hardware accelarated; } else { - std::cout << "softbased" << std::endl; + std::cout << "using software base sse computation" << std::endl; return &CRC32::SoftwareBasedCRC32; //crc32cSlicingBy8; } } diff --git a/DataStructures/DeallocatingVector.h b/DataStructures/DeallocatingVector.h index cf9421d16..bbfad9c36 100644 --- a/DataStructures/DeallocatingVector.h +++ b/DataStructures/DeallocatingVector.h @@ -192,6 +192,7 @@ private: std::vector mBucketList; public: + typedef ElementT value_type; typedef DeallocatingVectorIterator iterator; typedef DeallocatingVectorIterator const_iterator;