
2 Jun
2010
2 Jun
'10
1:44 p.m.
You seem to be making a distinction between the communication/transfer layer's endianness and that of the destination. <snip>
Glad to see you agree.
Your code could be as efficient as using Tomas' swap(), but not swap_in_place(), I think. Measurements are good.
I am looking forward to seeing these. Additionally, just pulling data through the CPU without doing anything to it might invalidate the caches of other processors, cause memory bus bottlenecks etc, effects that might be hard to measure.