summaryrefslogtreecommitdiff
path: root/ldso/ldso/i386
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2004-02-14 11:54:09 +0000
committerEric Andersen <andersen@codepoet.org>2004-02-14 11:54:09 +0000
commitd891064218c362387465ab1ad98e438d8d0b4b91 (patch)
treeab14ea12ddc2456c13520784381a7418f6566c18 /ldso/ldso/i386
parentdeec524084aa2faad66f7aae7e8b5ba1ab6789fd (diff)
Give gcc branch prediction some hits on obviously unlikely branches
Diffstat (limited to 'ldso/ldso/i386')
-rw-r--r--ldso/ldso/i386/elfinterp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ldso/ldso/i386/elfinterp.c b/ldso/ldso/i386/elfinterp.c
index 362df3c96..a80dcad54 100644
--- a/ldso/ldso/i386/elfinterp.c
+++ b/ldso/ldso/i386/elfinterp.c
@@ -217,7 +217,7 @@ _dl_parse(struct elf_resolve *tpnt, struct dyn_elf *scope,
if (symtab_index)
_dl_dprintf(2, "symbol '%s': ", strtab + symtab[symtab_index].st_name);
- if (res <0)
+ if (unlikely(res <0))
{
int reloc_type = ELF32_R_TYPE(rpnt->r_info);
#if defined (__SUPPORT_LD_DEBUG__)
@@ -227,7 +227,7 @@ _dl_parse(struct elf_resolve *tpnt, struct dyn_elf *scope,
#endif
_dl_exit(-res);
}
- else if (res >0)
+ if (unlikely(res >0))
{
_dl_dprintf(2, "can't resolve symbol\n");
return res;