From: Marco Costalba Date: Sun, 28 Oct 2012 16:12:40 +0000 (+0100) Subject: Get rid of ReducedStateInfo struct X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=13f90a30ef4da98722c7167cfb98532fd56a84d6;hp=13f90a30ef4da98722c7167cfb98532fd56a84d6;ds=sidebyside Get rid of ReducedStateInfo struct ReducedStateInfo is a redundant struct that is also prone to errors, indeed must be updated any time is updated StateInfo. It is a trick to partial copy a StateInfo object in do_move(). This patch takes advantage of builtin macro offsetof() to directly calculate the number of quad words to copy. Note that we still use memcpy to do the actual job of copying the (48 bytes) of data. Idea by Richard Vida. No functional and no performance change. ---