diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2015-08-30 09:55:24 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2015-08-30 09:55:24 -0700 |
commit | 8dbbc8c2f56e84e9cff97188dc5ad832660d3cc8 (patch) | |
tree | 5b80b4548f26d8997a4d379546452c24085c7acc /sysif.h | |
parent | 4463445b017cd0099cbb0fa050d199a814505f72 (diff) | |
download | txr-8dbbc8c2f56e84e9cff97188dc5ad832660d3cc8.tar.gz txr-8dbbc8c2f56e84e9cff97188dc5ad832660d3cc8.tar.bz2 txr-8dbbc8c2f56e84e9cff97188dc5ad832660d3cc8.zip |
struct: 4-way set associative slot caches.
* lib.h (SLOT_CACHE_SIZE): Adjust value from 32 to 8.
(slot_cache_entry_t): New struct typedef.
(slot_cache_line_t): Typedef updated: a cache line
consists of cache line entry structs rather than cnums.
* struct.c (cacheline_lookup, cacheline_insert): New
static functions.
(lookup_slot): Use cacheline_lookup and cacheline_insert.
Diffstat (limited to 'sysif.h')
0 files changed, 0 insertions, 0 deletions