Print info about use of 64bit functions and hardware POPCNT

With this patch at the applications startup a line is printed
with info about use of optimized 64 bit routines and hardware
POPCNT.

Also allow the possibility to disable POPCNT support during
PGO compiles to exercise the fallback software only path.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba
2009-05-23 11:42:43 +01:00
parent 628f844c11
commit ce5d9eb19d
3 changed files with 29 additions and 7 deletions

View File

@@ -75,11 +75,11 @@ int main(int argc, char *argv[]) {
}
// Print copyright notice
cout << engine_name() << ". Copyright (C) "
cout << engine_name() << ". Copyright (C) "
<< "2004-2009 Tord Romstad, Marco Costalba. " << endl;
// FIXME ONLY FOR DEBUG, REMOVE BEFORE RELEASE
cout << "Support for POPCNT is " << CpuHasPOPCNT << endl;
if (CpuHasPOPCNT)
cout << "Good! CPU has hardware POPCNT. We will use it." << endl;
// Enter UCI mode
uci_main_loop();