diff options
author | Miles Bader <miles@lsi.nec.co.jp> | 2002-08-14 09:15:36 +0000 |
---|---|---|
committer | Miles Bader <miles@lsi.nec.co.jp> | 2002-08-14 09:15:36 +0000 |
commit | 6e58f3b7d4da5d1d3083a7dbccf60fe066439c01 (patch) | |
tree | 9410e464864c39ddc6f6e2d45bf8fd7c12a6bf4e /libc | |
parent | 1c0f265241054461db57bd51209ef26773125caa (diff) | |
download | uClibc-alpine-6e58f3b7d4da5d1d3083a7dbccf60fe066439c01.tar.bz2 uClibc-alpine-6e58f3b7d4da5d1d3083a7dbccf60fe066439c01.tar.xz |
Use __malloc_unlikely instead of `likely'.
Diffstat (limited to 'libc')
-rw-r--r-- | libc/stdlib/malloc/free.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libc/stdlib/malloc/free.c b/libc/stdlib/malloc/free.c index 32e1f766b..cb08d9e60 100644 --- a/libc/stdlib/malloc/free.c +++ b/libc/stdlib/malloc/free.c @@ -26,9 +26,12 @@ free (void *mem) struct heap_free_area *fa; struct heap *heap = &__malloc_heap; - if (unlikely (! mem)) + /* Check for special cases. */ + if (__malloc_unlikely (! mem)) return; + /* Normal free. */ + size = MALLOC_SIZE (mem); mem = MALLOC_BASE (mem); |