From 214066a139e6c680e8517c89a07431a9649321a0 Mon Sep 17 00:00:00 2001 From: Thomas Grill Date: Fri, 27 Oct 2006 13:34:56 +0000 Subject: fix for Codewarrior compilation update docs fixed anything/symbol message mixup (thanks to Stefano Papetti) fixed typos, dates, contact info added gcc branch hinting svn path=/trunk/; revision=6170 --- externals/grill/flext/source/flmap.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'externals/grill/flext/source/flmap.h') diff --git a/externals/grill/flext/source/flmap.h b/externals/grill/flext/source/flmap.h index 69204e2e..796e9549 100644 --- a/externals/grill/flext/source/flmap.h +++ b/externals/grill/flext/source/flmap.h @@ -58,7 +58,7 @@ public: void *insert(int tsize,size_t k,void *t) { void *r; - if(n) + if(LIKELY(n)) r = _set(tsize,k,t); else { data[n++](k,t); @@ -68,11 +68,11 @@ public: return r; } - void *find(int tsize,size_t k) const { return n?_find(tsize,k):0; } + void *find(int tsize,size_t k) const { return LIKELY(n)?_find(tsize,k):0; } void *remove(int tsize,size_t k) { - void *r = n?_remove(tsize,k):0; + void *r = LIKELY(n)?_remove(tsize,k):0; // check(tsize); return r; } @@ -213,7 +213,7 @@ public: inline T remove(K k) { void *d = TableAnyMap::remove(N,*(size_t *)&k); - if(d) --count; + if(LIKELY(d)) --count; return (T)d; } -- cgit v1.2.1