From 6e58f3b7d4da5d1d3083a7dbccf60fe066439c01 Mon Sep 17 00:00:00 2001
From: Miles Bader <miles@lsi.nec.co.jp>
Date: Wed, 14 Aug 2002 09:15:36 +0000
Subject: Use __malloc_unlikely instead of `likely'.

---
 libc/stdlib/malloc/free.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

(limited to 'libc')

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);
 
-- 
cgit v1.2.3