summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorMiles Bader <miles@lsi.nec.co.jp>2002-08-14 09:15:36 +0000
committerMiles Bader <miles@lsi.nec.co.jp>2002-08-14 09:15:36 +0000
commit6e58f3b7d4da5d1d3083a7dbccf60fe066439c01 (patch)
tree9410e464864c39ddc6f6e2d45bf8fd7c12a6bf4e /libc
parent1c0f265241054461db57bd51209ef26773125caa (diff)
Use __malloc_unlikely instead of `likely'.
Diffstat (limited to 'libc')
-rw-r--r--libc/stdlib/malloc/free.c5
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);