1
0
Fork 0
forked from fte/fteqw

qccHunkAlloc(): Round block sizes up to the next 8 to make sure all blocks returned are aligned at least to that size. Fixes problems with alignment exceptions occuring on MIPS/Irix and should also improve performance on those systems that silently emulate badly aligned data accesses.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/branches/wip@3588 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Mark Olsen 2010-08-17 09:22:36 +00:00
parent a4ed95a376
commit 223ac397af

View file

@ -26,6 +26,8 @@ int qcchunksize;
char *qcchunk;
void *qccHunkAlloc(size_t mem)
{
mem = (mem + 7)&~7;
qccalloced+=mem;
if (qccalloced > qcchunksize)
QCC_Error(ERR_INTERNAL, "Compile hunk was filled");