diff options
author | Damjan Marion <damarion@cisco.com> | 2017-05-09 17:45:50 +0200 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2017-05-10 14:03:08 +0000 |
commit | bde55230fd34cca68ba47ad856b8a40067bdadc6 (patch) | |
tree | c7755ad4429ce4e535098a4c4292c9f615675a73 /src/plugins/snat/snat.c | |
parent | db84e579ef77476e3c73780e20243ee1799530f3 (diff) |
vppinfra: optimize and simplify splat inline functions
Example for u32x4 case:
Old code generates 2 instructions:
vmovd %edi,%xmm0
vpunpckldq %xmm0,%xmm0,%xmm0
vpunpcklqdq %xmm0,%xmm0,%xmm0
New code uses only one instruction:
mov %edi,-0x4(%rsp)
vbroadcastss -0x4(%rsp),%xmm0
Change-Id: I989dc3025f5fe3f6c880972389ded11f31e2f3f6
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/plugins/snat/snat.c')
0 files changed, 0 insertions, 0 deletions