OSDN Git Service

Use __malloc_unlikely instead of `likely'.
authorMiles Bader <miles@lsi.nec.co.jp>
Wed, 14 Aug 2002 09:15:36 +0000 (09:15 -0000)
committerMiles Bader <miles@lsi.nec.co.jp>
Wed, 14 Aug 2002 09:15:36 +0000 (09:15 -0000)
libc/stdlib/malloc/free.c

index 32e1f76..cb08d9e 100644 (file)
@@ -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);