zekyll/OMPEval

popcnt

Opened this issue · 2 comments

What should I do if the processor does not support the POPCNT instruction and an error (0xC000001D: Illegal Instruction) appears in Util.h >> bitCount (unsigned x) >> return __popcnt (x)?

I found a way to solve this problem. Instead of popcnt() use std::bitset::count(). It would be interesting to compare the performance of these two methods.

So can you show what exactly edit to run lib on non sse4.2 CPU what dont support popcnt ?