[git commit] ldso: use unlikely macro

Bernhard Reutner-Fischer rep.dot.nop at gmail.com
Fri Dec 20 13:00:26 UTC 2013


commit: http://git.uclibc.org/uClibc/commit/?id=f0ab57ca009fdf0c80df30af3756dfddc83d6e68
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/master

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop at gmail.com>
---
 ldso/include/ldsodefs.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ldso/include/ldsodefs.h b/ldso/include/ldsodefs.h
index 8f601e9..4063d00 100644
--- a/ldso/include/ldsodefs.h
+++ b/ldso/include/ldsodefs.h
@@ -66,7 +66,7 @@ extern void _dl_allocate_static_tls (struct link_map *map)
 /* Taken from glibc/elf/dl-reloc.c */
 #define CHECK_STATIC_TLS(sym_map)											\
 	do {																	\
-		if (__builtin_expect ((sym_map)->l_tls_offset == NO_TLS_OFFSET, 0))	\
+		if (unlikely((sym_map)->l_tls_offset == NO_TLS_OFFSET))	\
 			_dl_allocate_static_tls (sym_map);								\
 	} while (0)
 


More information about the uClibc-cvs mailing list