aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/tcp/tcp_input.c
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2021-10-28 12:02:15 +0200
committerFlorin Coras <florin.coras@gmail.com>2021-10-28 15:54:25 +0000
commite6709ff37dc0f3a58ed5ad98aace73fe801f1e9d (patch)
treed71e12113f9eb31d789d059aa4073b07a44409fb /src/vnet/tcp/tcp_input.c
parent48c0534c2eafe23fe8efba8c913109f30f6a294c (diff)
ip: improve csum fold on x86_64
New code seems to be 1.5 clocks faster. old: mov eax,edi shr rdi,0x20 add rdi,rax movzx edx,di shr rdi,0x10 add rdx,rdi movzx eax,dx shr rdx,0x10 add rax,rdx mov rdx,rax shr rdx,0x10 add eax,edx new: mov rax,rdi shr rax,0x20 add eax,edi mov edi,0x10 shrx edi,eax,edi adc ax,di adc ax,0x0 Type: improvement Change-Id: I3c565812c67ff4c3db197a9d4137a6c131b5b66c Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vnet/tcp/tcp_input.c')
0 files changed, 0 insertions, 0 deletions