pbase_tree_cache 1065 builtin/pack-objects.c static struct pbase_tree_cache *(pbase_tree_cache[256]); pbase_tree_cache 1068 builtin/pack-objects.c return sha1[0] % ARRAY_SIZE(pbase_tree_cache); pbase_tree_cache 1072 builtin/pack-objects.c return (ix+1) % ARRAY_SIZE(pbase_tree_cache); pbase_tree_cache 1082 builtin/pack-objects.c struct pbase_tree_cache pcache; pbase_tree_cache 1085 builtin/pack-objects.c static struct pbase_tree_cache *pbase_tree_get(const unsigned char *sha1) pbase_tree_cache 1087 builtin/pack-objects.c struct pbase_tree_cache *ent, *nent; pbase_tree_cache 1100 builtin/pack-objects.c ent = pbase_tree_cache[my_ix]; pbase_tree_cache 1107 builtin/pack-objects.c (!ent && pbase_tree_cache[available_ix]))) pbase_tree_cache 1130 builtin/pack-objects.c ent = pbase_tree_cache[available_ix]; pbase_tree_cache 1148 builtin/pack-objects.c pbase_tree_cache[my_ix] = nent; pbase_tree_cache 1152 builtin/pack-objects.c static void pbase_tree_put(struct pbase_tree_cache *cache) pbase_tree_cache 1195 builtin/pack-objects.c struct pbase_tree_cache *tree; pbase_tree_cache 1313 builtin/pack-objects.c for (i = 0; i < ARRAY_SIZE(pbase_tree_cache); i++) { pbase_tree_cache 1314 builtin/pack-objects.c if (!pbase_tree_cache[i]) pbase_tree_cache 1316 builtin/pack-objects.c free(pbase_tree_cache[i]->tree_data); pbase_tree_cache 1317 builtin/pack-objects.c free(pbase_tree_cache[i]); pbase_tree_cache 1318 builtin/pack-objects.c pbase_tree_cache[i] = NULL;