summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAlexei Podtelezhnikov <apodtele@gmail.com>2023-05-11 17:41:49 -0400
committerAlexei Podtelezhnikov <apodtele@gmail.com>2023-05-11 21:44:31 +0000
commitad708d70c9d5dc0553e4caa6097b150f6e6843e9 (patch)
tree1a12f0c5d30ebbe3c2ea4d73cf9e1e5c150d1852 /Makefile
parent6ca0a9356ff05c15edbc2bbd905221beacbef447 (diff)
downloadfreetype2-ad708d70c9d5dc0553e4caa6097b150f6e6843e9.tar.gz
[cache] Revise the dynamic hash table accounting.
Instead of counting entries relative to the middle of the hash table, this switches to the absolute counter with the full index range mask. As a result, some calculations become a bit simpler. The cache resizing logic stays largely the same. * src/cache/ftccache.h (FTC_NODE_TOP_FOR_HASH): Revised with new counter. * src/cache/ftccache.c (ftc_get_top_node_for_hash): Ditto. (ftc_cache_resize): Simplify reallocations and stop their zeroing. (ftc_cache_init): Stop over-allocating but keep zeroing initially. (FTC_Cache_Clear, FTC_Cache_RemoveFaceID): Updated accordingly.
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions