[PATCH 3/3] powerpc: bpf: implement in-register swap for 64-bit endian operations

David Laight David.Laight at ACULAB.COM
Sat Jan 14 04:17:26 AEDT 2017


From: Naveen N. Rao
> Sent: 13 January 2017 17:10
> Generate instructions to perform the endian conversion using registers,
> rather than generating two memory accesses.
> 
> The "way easier and faster" comment was obviously for the author, not
> the processor.

That rather depends on whether the processor has a store to load forwarder
that will satisfy the read from the store buffer.
I don't know about ppc, but at least some x86 will do that.

	David



More information about the Linuxppc-dev mailing list