OSDN Git Service
(root)
/
uclinux-h8
/
uClibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c0f265
)
Use __malloc_unlikely instead of `likely'.
author
Miles Bader
<miles@lsi.nec.co.jp>
Wed, 14 Aug 2002 09:15:36 +0000
(09:15 -0000)
committer
Miles Bader
<miles@lsi.nec.co.jp>
Wed, 14 Aug 2002 09:15:36 +0000
(09:15 -0000)
libc/stdlib/malloc/free.c
patch
|
blob
|
history
diff --git
a/libc/stdlib/malloc/free.c
b/libc/stdlib/malloc/free.c
index
32e1f76
..
cb08d9e
100644
(file)
--- 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);