tiles: TileStoreFreeList_end removal
This commit is contained in:
parent
e1238633ac
commit
1c3a059031
10
tiles/tile.c
10
tiles/tile.c
|
|
@ -62,7 +62,6 @@ global const Rect TiPlaneRect = { {MINFINITY+2, MINFINITY+2}, {INFINITY-2, INFIN
|
||||||
#ifdef HAVE_SYS_MMAN_H
|
#ifdef HAVE_SYS_MMAN_H
|
||||||
|
|
||||||
static Tile *TileStoreFreeList = NULL;
|
static Tile *TileStoreFreeList = NULL;
|
||||||
static Tile *TileStoreFreeList_end = NULL;
|
|
||||||
|
|
||||||
/* The new Tile Allocation scheme (Magic 8.0) */
|
/* The new Tile Allocation scheme (Magic 8.0) */
|
||||||
|
|
||||||
|
|
@ -699,11 +698,8 @@ getTileFromTileStore(void)
|
||||||
if (TileStoreFreeList)
|
if (TileStoreFreeList)
|
||||||
{
|
{
|
||||||
_return_tile = TileStoreFreeList;
|
_return_tile = TileStoreFreeList;
|
||||||
Tile *nextfree = (Tile *)CD2PTR(TileStoreFreeList->ti_client);
|
TileStoreFreeList = (Tile *)CD2PTR(TileStoreFreeList->ti_client);
|
||||||
TileStoreFreeList = nextfree;
|
return _return_tile; /* fast path */
|
||||||
if (!nextfree)
|
|
||||||
TileStoreFreeList_end = NULL;
|
|
||||||
return _return_tile;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Get it from the mmap */
|
/* Get it from the mmap */
|
||||||
|
|
@ -737,8 +733,6 @@ TileStoreFree(
|
||||||
Tile *ptr)
|
Tile *ptr)
|
||||||
{
|
{
|
||||||
ptr->ti_client = PTR2CD(TileStoreFreeList);
|
ptr->ti_client = PTR2CD(TileStoreFreeList);
|
||||||
if (!TileStoreFreeList_end)
|
|
||||||
TileStoreFreeList_end = ptr;
|
|
||||||
TileStoreFreeList = ptr;
|
TileStoreFreeList = ptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue