don't let gcc automaticly inline functions but make gcc inline bigger

functions when told to. also make gcc warn if it can't inline a function.

Explicitly inline several functions (including moving VectorNormalize to
mathlib.h so it /can/ be) resulting in a 5.5% speedup for spam2 (88 to 92
fps)
This commit is contained in:
Bill Currie 2003-08-11 06:05:07 +00:00
parent b88d275994
commit 7ead5a91f8
12 changed files with 62 additions and 61 deletions

View file

@ -135,8 +135,7 @@ Mod_LoadAllSkins (int numskins, daliasskintype_t *pskintype, int *pskinindex)
void
Mod_LoadAliasModel (model_t *mod, void *buffer, cache_allocator_t allocator)
{
byte *p;
int i, j, len, size, version, numframes, start, end, total;
int i, j, size, version, numframes, start, end, total;
dtriangle_t *pintriangles;
daliasframetype_t *pframetype;
daliasskintype_t *pskintype;
@ -151,8 +150,7 @@ Mod_LoadAliasModel (model_t *mod, void *buffer, cache_allocator_t allocator)
extra = 1; // extra precision bytes
CRC_Init (&crc);
for (len = qfs_filesize, p = buffer; len; len--, p++)
CRC_ProcessByte (&crc, *p);
CRC_ProcessBlock (buffer, &crc, qfs_filesize);
start = Hunk_LowMark ();