diff options
author | William Wilgus <wilgus.william@gmail.com> | 2022-03-01 22:37:11 -0500 |
---|---|---|
committer | William Wilgus <wilgus.william@gmail.com> | 2022-03-02 20:22:49 -0500 |
commit | f88ea12bacf381ad4f39ba2328c806e772c0dda8 (patch) | |
tree | 211a5b21bffda36e54c0a2fe62d3c94faee85f86 /apps/tagcache.h | |
parent | ae97d410c5d2114d353480301e8c1f1d7bbaacce (diff) | |
download | rockbox-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.h | 2 |
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 { | |||
188 | int entry_count; | 188 | int entry_count; |
189 | bool valid; | 189 | bool valid; |
190 | bool initialized; | 190 | bool initialized; |
191 | unsigned long *unique_list; | 191 | uint32_t *unique_list; |
192 | int unique_list_capacity; | 192 | int unique_list_capacity; |
193 | int unique_list_count; | 193 | int unique_list_count; |
194 | 194 | ||