dev.dpdk.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Cleanup rte_memcpy.h
@ 2015-04-14 21:30 Ravi Kerur
       [not found] ` <1429047011-11545-1-git-send-email-rkerur-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Ravi Kerur @ 2015-04-14 21:30 UTC (permalink / raw)
  To: dev-VfR2kkLFssw

rte_memcpy.h has
sperfluous type casting in several functions, remove those unnecessary casting.
while copying separate invocations of functions with changing offset, instead
offset can be calculated with loop.

Testing:
Compared code generated with and without changes with following gcc commands

gcc -O3 -m64 -S 

found no difference.

Tested on Ubuntu x86_64 (x86_64-native-linuxapp-gcc) with "make test"

Overall tests passed matches baseline.

Secondly memcpy performace tests take similar amount of time to finish.

/**********************With changes*************************************/
Start memcpy_perf:             Success                       [00m 00s]
Memcpy performance autotest:   Success                       [09m 36s] [17m 45s]
/**********************Without changes**********************************/
Start memcpy_perf:             Success                       [00m 00s]
Memcpy performance autotest:   Success                       [09m 35s] [13m 57s]

Ravi Kerur (1):
  Clean up rte_memcpy.h file

 .../common/include/arch/x86/rte_memcpy.h           | 317 ++++++++++-----------
 1 file changed, 151 insertions(+), 166 deletions(-)

-- 
1.9.1

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-04-15 21:04 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-14 21:30 [PATCH] Cleanup rte_memcpy.h Ravi Kerur
     [not found] ` <1429047011-11545-1-git-send-email-rkerur-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2015-04-14 21:31   ` [PATCH] Clean up rte_memcpy.h file Ravi Kerur
     [not found]     ` <1429047113-11688-1-git-send-email-rkerur-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2015-04-15  2:53       ` Stephen Hemminger
2015-04-15 21:04         ` Ravi Kerur
2015-04-15  6:32       ` Pawel Wodkowski
     [not found]         ` <552E05FB.30504-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2015-04-15 21:00           ` Ravi Kerur

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).