Branch: Tag:

2012-02-09

2012-02-09 13:29:48 by Arne Goedeke <el@laramies.com>

help gcc with descision making

586:      PMOD_EXPORT void ba_low_free(struct block_allocator * a, ba_page p,    ba_block_header ptr) { -  if (!p) { +  if (likely(!p)) {    ba_find_page(a, ptr);    p = a->last_free;    ((ba_block_header)ptr)->next = p->first;
625:    }   }    + ATTRIBUTE((always_inline))   PMOD_EXPORT INLINE void ba_find_page(struct block_allocator * a,    const void * ptr) {    ba_page_t n;