mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
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:
parent
c032b9d083
commit
6f078c428f
2 changed files with 1 additions and 11 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue