official-stockfish/Stockfish — pull request #74 by mcostalba (2014-10-25 05:38:41+00:00)
Title: Reformat max_threat()

Helper function should just know how to find the
biggest piece type in a bitboard. All the threat
logic and data shoud be in evaluate_threats().

This nicely separates the scope of the two functions
in a more consistent way and simplifies the code.

No functional change.