Lines Matching defs:cache
121 // Find num in cache
122 struct num_cache *get_num_cache(struct num_cache *cache, long long num)
124 while (cache) {
125 if (num==cache->num) return cache;
126 cache = cache->next;
132 // Uniquely add num+data to cache. Updates *cache, returns pointer to existing
134 struct num_cache *add_num_cache(struct num_cache **cache, long long num,
137 struct num_cache *old = get_num_cache(*cache, num);
142 old->next = *cache;
145 *cache = old;