(svn r23703) -Codechange: allow a compiler to inline a wrapper function, avoiding creation of a function stack, massively increasing its speed, for a function that is called often

This commit is contained in:
truebrain
2012-01-01 16:38:38 +00:00
parent 3b2ecfab01
commit da460f6928
2 changed files with 13 additions and 12 deletions

View File

@@ -66,7 +66,7 @@
static SmallVector<GRFFile *, 16> _grf_files;
/** Miscellaneous GRF features, set by Action 0x0D, parameter 0x9E */
static byte _misc_grf_features = 0;
byte _misc_grf_features = 0;
/** 32 * 8 = 256 flags. Apparently TTDPatch uses this many.. */
static uint32 _ttdpatch_flags[8];
@@ -9062,13 +9062,3 @@ void LoadNewGRF(uint load_index, uint file_index)
_tick_counter = tick_counter;
_display_opt = display_opt;
}
/**
* Check for grf miscelaneous bits
* @param bit The bit to check.
* @return Whether the bit is set.
*/
bool HasGrfMiscBit(GrfMiscBit bit)
{
return HasBit(_misc_grf_features, bit);
}