Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugene Tarassov2012-03-21 02:45:07 +0000
committerEugene Tarassov2012-03-21 02:45:07 +0000
commit2fe69c47e0400f0e465fe92e14e06a0b41b5543d (patch)
tree6526aa558119d3923f7b1071bbfd9098028dd251 /agent/tcf/services/tcf_elf.c
parenta22794d579efc1ef8026c15ca2147dcbd4da27ac (diff)
downloadorg.eclipse.tcf.agent-2fe69c47e0400f0e465fe92e14e06a0b41b5543d.tar.gz
org.eclipse.tcf.agent-2fe69c47e0400f0e465fe92e14e06a0b41b5543d.tar.xz
org.eclipse.tcf.agent-2fe69c47e0400f0e465fe92e14e06a0b41b5543d.zip
TCF Agent: performance improvements in ELF/DWARF symbols service.
Diffstat (limited to 'agent/tcf/services/tcf_elf.c')
-rw-r--r--agent/tcf/services/tcf_elf.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/agent/tcf/services/tcf_elf.c b/agent/tcf/services/tcf_elf.c
index 351a1e00..72016376 100644
--- a/agent/tcf/services/tcf_elf.c
+++ b/agent/tcf/services/tcf_elf.c
@@ -1270,8 +1270,7 @@ unsigned calc_symbol_name_hash(const char * s) {
}
h = (h << 4) + (unsigned char)*s++;
g = h & 0xf0000000;
- if (g) h ^= g >> 24;
- h &= ~g;
+ if (g) h = (h ^ (g >> 24)) & ~g;
}
return h;
}

Back to the top