Enable POPCNT at runtime
authorMarco Costalba <mcostalba@gmail.com>
Thu, 21 May 2009 14:41:31 +0000 (16:41 +0200)
committerMarco Costalba <mcostalba@gmail.com>
Thu, 21 May 2009 14:41:31 +0000 (16:41 +0200)
commite7d3a006cda7822517159cad0ef222eb7e46db00
treeaccbfa73a1c74ce921ff994b68adeaa98908ef18
parent3376c68f4bb83dc9fd874eb9d710dab09609ae54
Enable POPCNT at runtime

Runtime detect POPCNT instruction support and
use it.

Also if POPCNT is not supported we don't add _any_ overhead so
that we don't lose any speed in standard case.

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
src/bitcount.h
src/evaluate.cpp