aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/snat/snat.c
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2017-05-09 17:45:50 +0200
committerDave Barach <openvpp@barachs.net>2017-05-10 14:03:08 +0000
commitbde55230fd34cca68ba47ad856b8a40067bdadc6 (patch)
treec7755ad4429ce4e535098a4c4292c9f615675a73 /src/plugins/snat/snat.c
parentdb84e579ef77476e3c73780e20243ee1799530f3 (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