Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
Showing
2 changed files
with
9 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters