summaryrefslogtreecommitdiffstats
path: root/apps/tagcache.h
diff options
context:
space:
mode:
authorWilliam Wilgus <wilgus.william@gmail.com>2022-03-01 22:37:11 -0500
committerWilliam Wilgus <wilgus.william@gmail.com>2022-03-02 20:22:49 -0500
commitf88ea12bacf381ad4f39ba2328c806e772c0dda8 (patch)
tree211a5b21bffda36e54c0a2fe62d3c94faee85f86 /apps/tagcache.h
parentae97d410c5d2114d353480301e8c1f1d7bbaacce (diff)
downloadrockbox-f88ea12bacf381ad4f39ba2328c806e772c0dda8.tar.gz
rockbox-f88ea12bacf381ad4f39ba2328c806e772c0dda8.zip
tagcache compress uniqbuf 2 16-bit indices occupy a single 32 bit slot
a lot of space is wasted when file indices less than 65535 entries should be more than 1 byte apart so use the LSB as a flag when indices are > 65535 set flag to 0 and proceed as before explicitly mark uniqbuf as 32bit Change-Id: I54e06c152c369eb6c0322186fe2c1e9a1e6d940d
Diffstat (limited to 'apps/tagcache.h')
-rw-r--r--apps/tagcache.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/tagcache.h b/apps/tagcache.h
index 52a9283e35..b7c4aadbb1 100644
--- a/apps/tagcache.h
+++ b/apps/tagcache.h
@@ -188,7 +188,7 @@ struct tagcache_search {
int entry_count;
bool valid;
bool initialized;
- unsigned long *unique_list;
+ uint32_t *unique_list;
int unique_list_capacity;
int unique_list_count;