Re: [PATCH v2 1/2] powerpc32: put csum_tcpudp_magic inline

2015-04-28 Thread christophe leroy
Le 25/03/2015 03:10, Scott Wood a écrit : On Tue, 2015-02-03 at 12:39 +0100, Christophe Leroy wrote: csum_tcpudp_magic() is only a few instructions, and does not modifies any other register than the returned result. So it is not worth having it as a separate function and suffer function branch

Re: [PATCH v2 1/2] powerpc32: put csum_tcpudp_magic inline

2015-03-24 Thread Scott Wood
On Tue, 2015-02-03 at 12:39 +0100, Christophe Leroy wrote: > csum_tcpudp_magic() is only a few instructions, and does not modifies any > other > register than the returned result. So it is not worth having it as a separate > function and suffer function branching and saving of volatile registers.

[PATCH v2 1/2] powerpc32: put csum_tcpudp_magic inline

2015-02-03 Thread Christophe Leroy
csum_tcpudp_magic() is only a few instructions, and does not modifies any other register than the returned result. So it is not worth having it as a separate function and suffer function branching and saving of volatile registers. This patch makes it inline by use of the already existing csum_tcpud