Output of used CRC32 method more verbose

This commit is contained in:
DennisOSRM 2012-09-17 15:38:02 +02:00
parent 7965e29d49
commit 9e6ac95e4f
2 changed files with 3 additions and 2 deletions

View File

@ -62,10 +62,10 @@ CRC32::CRC32CFunctionPtr CRC32::detectBestCRC32C() {
unsigned ecx = cpuid(1); unsigned ecx = cpuid(1);
bool hasSSE42 = ecx & (1 << SSE42_BIT); bool hasSSE42 = ecx & (1 << SSE42_BIT);
if (hasSSE42) { if (hasSSE42) {
std::cout << "sse based" << std::endl; std::cout << "using hardware base sse computation" << std::endl;
return &CRC32::SSEBasedCRC32; //crc32 hardware accelarated; return &CRC32::SSEBasedCRC32; //crc32 hardware accelarated;
} else { } else {
std::cout << "softbased" << std::endl; std::cout << "using software base sse computation" << std::endl;
return &CRC32::SoftwareBasedCRC32; //crc32cSlicingBy8; return &CRC32::SoftwareBasedCRC32; //crc32cSlicingBy8;
} }
} }

View File

@ -192,6 +192,7 @@ private:
std::vector<ElementT *> mBucketList; std::vector<ElementT *> mBucketList;
public: public:
typedef ElementT value_type;
typedef DeallocatingVectorIterator<ElementT, bucketSizeC, false> iterator; typedef DeallocatingVectorIterator<ElementT, bucketSizeC, false> iterator;
typedef DeallocatingVectorIterator<ElementT, bucketSizeC, false> const_iterator; typedef DeallocatingVectorIterator<ElementT, bucketSizeC, false> const_iterator;