Change lru from double to single linked list. Only the font cache uses LRU and it never searches in reverse. Saves 2 bytes per glyph.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30818 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Fred Bauer 2011-10-21 20:23:21 +00:00
parent c032b9d083
commit 6f078c428f
2 changed files with 1 additions and 11 deletions

View file

@ -33,7 +33,7 @@ struct lru
void *_base;
};
#define LRU_SLOT_OVERHEAD (2 * sizeof(short))
#define LRU_SLOT_OVERHEAD (1 * sizeof(short))
/* Create LRU list with specified size from buf. */
void lru_create(struct lru* pl, void *buf, short size, short data_size);