]> git.draconx.ca Git - rrace.git/commit
Improve game_check_goal implementation slightly.
authorNick Bowler <nbowler@draconx.ca>
Wed, 7 Dec 2022 03:40:10 +0000 (22:40 -0500)
committerNick Bowler <nbowler@draconx.ca>
Wed, 7 Dec 2022 04:37:00 +0000 (23:37 -0500)
commit384c634555c6c65635abfcb819e37221d236b410
treecbaea5b53d8e61c0d4aaf81569a5c1408e08bf49
parentdca6f339a975a1787c4730abffe1b2663e4face6
Improve game_check_goal implementation slightly.

It seems that, at least on x86, GCC can generate very slightly more
compact code by "expanding" the goal bitmap to match the game format,
rather what is currently done ("shrinking" the game bitmap to match
the goal format).

Add a sanity test case that checks the result of this function, which
makes such a change straightforward to do.
Makefile.am
src/game.c
t/.gitignore
t/checkgoal.c [new file with mode: 0644]
tests/game.at