Home | History | Annotate | Download | only in helgrind

Lines Matching full:_cache

84       WCache* _cache = &(_zzcache);                                  \
85 tl_assert(_cache->dynMax >= 1); \
86 tl_assert(_cache->dynMax <= N_WCACHE_STAT_MAX); \
87 tl_assert(_cache->inUse >= 0); \
88 tl_assert(_cache->inUse <= _cache->dynMax); \
89 if (_cache->inUse > 0) { \
90 if (_cache->ent[0].arg1 == _arg1 \
91 && _cache->ent[0].arg2 == _arg2) \
92 return (_retty)_cache->ent[0].res; \
93 for (_i = 1; _i < _cache->inUse; _i++) { \
94 if (_cache->ent[_i].arg1 == _arg1 \
95 && _cache->ent[_i].arg2 == _arg2) { \
96 WCacheEnt tmp = _cache->ent[_i-1]; \
97 _cache->ent[_i-1] = _cache->ent[_i]; \
98 _cache->ent[_i] = tmp; \
99 return (_retty)_cache->ent[_i-1].res; \
111 WCache* _cache = &(_zzcache); \
112 tl_assert(_cache->dynMax >= 1); \
113 tl_assert(_cache->dynMax <= N_WCACHE_STAT_MAX); \
114 tl_assert(_cache->inUse >= 0); \
115 tl_assert(_cache->inUse <= _cache->dynMax); \
116 if (_cache->inUse < _cache->dynMax) \
117 _cache->inUse++; \
118 for (_i = _cache->inUse-1; _i >= 1; _i--) \
119 _cache->ent[_i] = _cache->ent[_i-1]; \
120 _cache->ent[0].arg1 = _arg1; \
121 _cache->ent[0].arg2 = _arg2; \
122 _cache->ent[0].res = _res; \